Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/extension-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
run:
working-directory: clients/vscode
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
node-version: "22"

- run: npm ci
- run: npm run compile && npm test
Expand Down Expand Up @@ -53,8 +53,14 @@ jobs:
- name: Attach .vsix to a GitHub Release
env:
GH_TOKEN: ${{ github.token }}
# Idempotent: a re-run (e.g. after configuring a publish PAT) must not fail
# just because the release already exists — upload/clobber the asset instead.
run: |
gh release create "$GITHUB_REF_NAME" *.vsix \
--title "$GITHUB_REF_NAME" \
--notes "gate VS Code / Cursor extension $GITHUB_REF_NAME" \
--verify-tag
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
gh release upload "$GITHUB_REF_NAME" *.vsix --clobber
else
gh release create "$GITHUB_REF_NAME" *.vsix \
--title "$GITHUB_REF_NAME" \
--notes "gate VS Code / Cursor extension $GITHUB_REF_NAME" \
--verify-tag
fi
Loading