Skip to content

Commit defb34f

Browse files
authored
ci: publish to VS Code Marketplace and Open VSX on release (#70)
Add vsce publish and ovsx publish steps to the release workflow so that merging a release-please PR deploys the .vsix to both registries. Requires VSCE_PAT and OVSX_PAT repository secrets. Closes #2 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent de77c2f commit defb34f

3 files changed

Lines changed: 505 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ jobs:
5656
env:
5757
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
run: gh release upload "${{ needs.release-please.outputs.tag_name }}" patchloom.vsix
59+
- name: Publish to VS Code Marketplace
60+
run: npx @vscode/vsce publish --packagePath patchloom.vsix
61+
env:
62+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
63+
- name: Publish to Open VSX
64+
run: npx ovsx publish patchloom.vsix
65+
env:
66+
OVSX_PAT: ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)