Skip to content

Commit b7fe7a1

Browse files
committed
attach build to GH release
1 parent 2fa3310 commit b7fe7a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ jobs:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6363

64+
- name: Attach VSX to GitHub release
65+
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
66+
run: |
67+
npx -y @vscode/vsce package --out "vscode-apollo-$VERSION.vsix"
68+
gh release upload "v$VERSION" "vscode-apollo-$VERSION.vsix"
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
VERSION: ${{steps.changesets.outputs.publishedPackages[0].version}}
72+
6473
- name: Publish to Open VSX Registry
6574
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
6675
uses: HaaLeo/publish-vscode-extension@v1

0 commit comments

Comments
 (0)