File tree Expand file tree Collapse file tree 4 files changed +5245
-1437
lines changed
Expand file tree Collapse file tree 4 files changed +5245
-1437
lines changed Original file line number Diff line number Diff line change 3434 run : npm run compile
3535
3636 - name : Run tests
37- uses : coactions/setup-xvfb@v1
38- with :
39- run : npm test
37+ run : xvfb-run -a npm test
38+ if : runner.os == 'Linux'
39+
40+ - name : Run tests
41+ run : npm test
42+ if : runner.os != 'Linux'
4043
4144 package :
4245 runs-on : ubuntu-latest
5760
5861 - name : Package extension
5962 run : |
60- npm install -g @vscode/vsce
61- vsce package
63+ npx @vscode/vsce package
6264
6365 - name : Upload VSIX artifact
6466 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 2929
3030 - name : Package extension
3131 run : |
32- npm install -g @vscode/vsce
33- vsce package
32+ npx @vscode/vsce package
3433
3534 - name : Get version from tag
3635 id : get_version
4746 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4847
4948 - name : Publish to VS Code Marketplace
50- run : vsce publish --pat ${{ secrets.VSCE_PAT }}
51- if : ${{ secrets.VSCE_PAT != '' }}
49+ if : ${{ secrets.VSCE_PAT }}
50+ run : npx @vscode/vsce publish --pat ${{ secrets.VSCE_PAT }}
5251
5352 - name : Publish to Open VSX Registry
54- run : |
55- npm install -g ovsx
56- ovsx publish *.vsix --pat ${{ secrets.OVSX_PAT }}
57- if : ${{ secrets.OVSX_PAT != '' }}
53+ if : ${{ secrets.OVSX_PAT }}
54+ run : npx ovsx publish *.vsix --pat ${{ secrets.OVSX_PAT }}
You can’t perform that action at this time.
0 commit comments