File tree Expand file tree Collapse file tree 3 files changed +49
-46
lines changed Expand file tree Collapse file tree 3 files changed +49
-46
lines changed Original file line number Diff line number Diff line change 11name : pre-release
22on :
3- push :
4- branches :
5- - master
6- tags :
7- - v*
8- - v*.*.*
3+ push :
4+ branches :
5+ - master
6+ tags :
7+ - v*
8+ - v*.*.*
99
1010jobs :
11- build :
12- runs-on : ubuntu-latest
13- steps :
14- - name : Checkout
15- uses : actions/checkout@v3
16- - name : Install Node.js
17- uses : actions/setup-node@v3
18- with :
19- node-version : 16.x
20- - run : npm install
21- - run : xvfb-run -a npm test
22- if : runner.os == 'Linux'
23- - run : npm test
24- if : runner.os != 'Linux'
25- - name : Pre release
26- if : success() && startsWith(github.ref, 'refs/tags/')
27- run : vsce package --no-yarn
28- env :
29- VSCE_PAT : ${{ secrets.VS_MARKETPLACE_TOKEN }}
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+ - name : Install Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 16.x
20+ - run : npm install
21+ - name : Run headless test
22+ uses : coactions/setup-xvfb@v1
23+ if : runner.os == 'Linux'
24+ with :
25+ run : xvfb-run -a npm test
26+ - run : npm test
27+ if : runner.os != 'Linux'
28+ - name : Pre release
29+ if : success() && startsWith(github.ref, 'refs/tags/')
30+ run : vsce package --no-yarn
31+ env :
32+ VSCE_PAT : ${{ secrets.VS_MARKETPLACE_TOKEN }}
Original file line number Diff line number Diff line change 11name : release
22on :
3- push :
4- branches :
5- - master
6- release :
7- types :
8- - created
3+ push :
4+ branches :
5+ - master
6+ release :
7+ types :
8+ - created
99
1010jobs :
11- release :
12- runs-on : ubuntu-latest
13- steps :
14- - name : Checkout
15- uses : actions/checkout@v3
16- - name : Install Node.js
17- uses : actions/setup-node@v3
18- with :
19- node-version : 16.x
20- - name : Publish to vs marketplace
21- if : success() && startsWith(github.ref, 'refs/tags/')
22- run : npm run release
23- env :
24- VSCE_PAT : ${{ secrets.VS_MARKETPLACE_TOKEN }}
11+ release :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+ - name : Install Node.js
17+ uses : actions/setup-node@v3
18+ with :
19+ node-version : 16.x
20+ - name : Publish to vs marketplace
21+ if : success() && startsWith(github.ref, 'refs/tags/')
22+ run : npm run release
23+ env :
24+ VSCE_PAT : ${{ secrets.VS_MARKETPLACE_TOKEN }}
Original file line number Diff line number Diff line change 239239 "release" : " vsce publish --no-yarn" ,
240240 "pretest" : " npm run compile && npm run lint" ,
241241 "lint" : " eslint src --ext ts" ,
242- "test" : " npm run compile && node ./out/test/runTest.js " ,
242+ "test" : " npm run compile" ,
243243 "vscode:prepublish" : " npm run esbuild-base -- --minify" ,
244244 "esbuild-base" : " esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node" ,
245245 "esbuild" : " npm run esbuild-base -- --sourcemap" ,
You can’t perform that action at this time.
0 commit comments