File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed
Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 11name : Publish VS Code Extension
22
33on :
4- release :
5- types : [published]
6-
74 workflow_dispatch :
85
96permissions :
10- contents : read
7+ contents : write
118
129jobs :
1310 build :
2118 - name : Install Node.js
2219 uses : actions/setup-node@v4
2320 with :
24- node-version : 18
25- cache : npm
21+ node-version : 20
2622
2723 - name : Install dependencies
2824 run : npm ci
4642 name : Attach VSIX to GitHub Release
4743 needs : build
4844 runs-on : ubuntu-latest
49-
5045 permissions :
5146 contents : write
5247
@@ -55,12 +50,11 @@ jobs:
5550 uses : actions/download-artifact@v4
5651 with :
5752 name : extension
58- path : dist
5953
60- - name : Create / update GitHub Release with VSIX
61- uses : softprops/action-gh-release@v2
54+ - name : Create GitHub Release
55+ uses : softprops/action-gh-release@v1
6256 with :
63- files : dist/ *.vsix
57+ files : " *.vsix"
6458 env :
6559 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6660
@@ -69,17 +63,11 @@ jobs:
6963 needs : release
7064 runs-on : ubuntu-latest
7165
72- permissions :
73- contents : read
74-
7566 steps :
76- - name : Checkout repository
77- uses : actions/checkout@v4
78-
7967 - name : Install Node.js
8068 uses : actions/setup-node@v4
8169 with :
82- node-version : 18
70+ node-version : 20
8371
8472 - name : Install vsce
8573 run : npm install -g @vscode/vsce
8876 uses : actions/download-artifact@v4
8977 with :
9078 name : extension
91- path : dist
9279
9380 - name : Publish to VSCode Marketplace
94- run : vsce publish --packagePath dist/ *.vsix
81+ run : vsce publish --packagePath *.vsix
9582 env :
96- VSCE_PAT : ${{ secrets.VSCE_PAT }}
83+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
You can’t perform that action at this time.
0 commit comments