Skip to content

Commit 9ff687b

Browse files
feat: add open vsx release
1 parent 6e0d6e2 commit 9ff687b

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,23 @@ jobs:
2929
with:
3030
files: ast-grep-vscode.vsix
3131
- name: Publish extension
32-
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
32+
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
33+
34+
release-open-vsx:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v3
39+
40+
- name: Setup Node
41+
uses: actions/setup-node@v4
42+
43+
- name: Install dependencies
44+
run: npm install
45+
46+
- name: Install ovsx (Open VSX CLI)
47+
run: npm install -g ovsx
48+
49+
- name: Publish to Open VSX
50+
run: |
51+
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}

0 commit comments

Comments
 (0)