-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (45 loc) · 1.17 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
permissions:
contents: write
on:
push:
tags:
- '[0-9]+.*'
jobs:
release-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install deps
run: npm install
- name: Install vsce
run: npm install vsce -g
- name: Compile
run: npm run compile
- name: Package VSCE
run: vsce package -o ast-grep-vscode.vsix
- name: Create GH Release
uses: softprops/action-gh-release@v2
with:
files: ast-grep-vscode.vsix
- name: Publish extension
run: vsce publish -p ${{ secrets.VSCE_TOKEN }}
release-open-vsx:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install ovsx (Open VSX CLI)
run: npm install -g ovsx
- name: Publish to Open VSX
run: |
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}