File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ patreon : whitequark
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - main
5+ tags :
6+ - v*
7+ pull_request :
8+ merge_group :
9+ name : CI
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Check out source code
15+ uses : actions/checkout@v4
16+ - name : Set up Node
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : v20.x
20+ - name : Install dependencies
21+ run : npm install
22+ - name : Package extension
23+ run : npm run package
24+ - name : Upload package artifact
25+ uses : actions/upload-artifact@v4
26+ with :
27+ name : package
28+ path : ' *.vsix'
29+ publish :
30+ needs : build
31+ runs-on : ubuntu-latest
32+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
33+ steps :
34+ - name : Set up Node
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : v20.x
38+ - name : Install VSCE
39+ run : npm install -g @vscode/vsce
40+ - name : Download package artifact
41+ uses : actions/download-artifact@v4
42+ with :
43+ name : package
44+ - name : Publish package
45+ run : vsce publish -i *.vsix
46+ env :
47+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
You can’t perform that action at this time.
0 commit comments