Skip to content

Commit a00c092

Browse files
authored
CM-41260, CM-41523 - Setup GHA for publishing to Open VSX marketplace (#113)
1 parent 6b0be88 commit a00c092

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/lint_build_publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ jobs:
3030
- name: Install dependencies
3131
run: |
3232
npm install
33-
npm install -g @vscode/vsce
33+
npm install -g @vscode/vsce ovsx
3434
3535
- name: Code Linting
3636
run: npm run lint
3737

3838
- name: Build extension
39-
env:
40-
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
4139
run: vsce package
4240

4341
- name: Upload extension package to artifacts
@@ -47,13 +45,16 @@ jobs:
4745
path: "*.vsix"
4846
if-no-files-found: error
4947

50-
- name: Publish extension to marketplace
48+
- name: Publish extension to marketplaces
5149
# it runs on tag creation only which starts with 'v' (e.g., v1.0.0)
5250
if: startsWith(github.ref, 'refs/tags/v')
5351
env:
5452
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
5553
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
56-
run: vsce publish
54+
OVSX_PAT: ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }}
55+
run: |
56+
vsce publish
57+
ovsx publish
5758
5859
- name: Publish extension to GitHub Release
5960
# it runs on tag creation only which starts with 'v' (e.g., v1.0.0)

0 commit comments

Comments
 (0)