File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+
6
+ jobs :
7
+ build :
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-latest]
11
+ runs-on : ${{ matrix.os }}
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 18.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
+
26
+ - name : Publish
27
+ run : npm run deploy
28
+ env :
29
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
Original file line number Diff line number Diff line change 73
73
"scripts" : {
74
74
"lint" : " eslint ." ,
75
75
"pretest" : " npm run lint" ,
76
- "test" : " vscode-test"
76
+ "test" : " vscode-test" ,
77
+ "deploy" : " vsce publish --npm"
77
78
},
78
79
"devDependencies" : {
79
80
"@types/mocha" : " ^10.0.7" ,
You can’t perform that action at this time.
0 commit comments