File tree Expand file tree Collapse file tree 5 files changed +1038
-23
lines changed Expand file tree Collapse file tree 5 files changed +1038
-23
lines changed Original file line number Diff line number Diff line change 1+ name : pre-release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ tags :
7+ - v*
8+ - v*.*.*
9+
10+ jobs :
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 }}
Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ release :
7+ types :
8+ - created
9+
10+ jobs :
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 @@ -7,4 +7,6 @@ vsc-extension-quickstart.md
77** /tsconfig.json
88** /.eslintrc.json
99** /* .map
10- ** /* .ts
10+ ** /* .ts
11+ node_modules
12+ src /
You can’t perform that action at this time.
0 commit comments