Skip to content

Commit 3d521ae

Browse files
feat: added ovsx deploy step
1 parent b317e87 commit 3d521ae

File tree

3 files changed

+89
-3
lines changed

3 files changed

+89
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: startsWith(github.ref, 'refs/tags/')
2121
with:
2222
files: '*.vsix'
23+
2324
deploy:
2425
runs-on: ubuntu-latest
2526
needs: build
@@ -28,7 +29,11 @@ jobs:
2829
uses: actions/checkout@v4
2930
- name: Install
3031
run: npm install
31-
- name: Publish
32-
run: npm run deploy
32+
- name: Publish to VS Code Marketplace
33+
run: npm run deploy:vsce
3334
env:
3435
VSCE_PAT: ${{ secrets.VSCE_PAT }}
36+
- name: Publish to Open VSX Registry
37+
run: npm run deploy:ovsx
38+
env:
39+
OVSX_PAT: ${{ secrets.OVSX_PAT }}

package-lock.json

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@
391391
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
392392
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
393393
"package-vsix": "vsce package",
394-
"deploy": "vsce publish"
394+
"deploy:vsce": "vsce publish",
395+
"deploy:ovsx": "ovsx publish"
395396
},
396397
"devDependencies": {
397398
"@types/lodash-es": "^4.17.12",
@@ -413,6 +414,7 @@
413414
"eslint-config-prettier": "^10.0.1",
414415
"eslint-plugin-prettier": "^5.2.3",
415416
"npm-run-all": "^4.1.5",
417+
"ovsx": "^0.10.1",
416418
"prettier": "^3.4.2",
417419
"rimraf": "^6.0.1",
418420
"sinon": "^19.0.2",

0 commit comments

Comments
 (0)