Skip to content

Add SDK and MCP integration links to settings page #11

Add SDK and MCP integration links to settings page

Add SDK and MCP integration links to settings page #11

Workflow file for this run

name: Release
on:
push:
branches: [main]
paths: [package.json]
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect version change
id: version
run: |
CURRENT=$(jq -r .version package.json)
PREVIOUS=$(git show HEAD~1:package.json 2>/dev/null | jq -r .version 2>/dev/null || echo "")
echo "current=$CURRENT" >> "$GITHUB_OUTPUT"
if [ "$CURRENT" != "$PREVIOUS" ] && [ -n "$CURRENT" ]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi
- name: Check tag does not exist
if: steps.version.outputs.changed == 'true'
id: check_tag
run: |
TAG="app-v${{ steps.version.outputs.current }}"
if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Extract changelog for version
if: steps.version.outputs.changed == 'true' && steps.check_tag.outputs.exists == 'false'
run: |
bash scripts/extract-changelog.sh \
"${{ steps.version.outputs.current }}" \
CHANGELOG.md \
/tmp/release_notes.md
- name: Create tag and release
if: steps.version.outputs.changed == 'true' && steps.check_tag.outputs.exists == 'false'
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG="app-v${{ steps.version.outputs.current }}"
git tag "$TAG"
git push origin "$TAG"
gh release create "$TAG" \
--title "$TAG" \
--notes-file /tmp/release_notes.md