@@ -2,60 +2,72 @@ name: CI
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [master]
66 pull_request :
7- branches : [ master ]
7+ branches : [master]
88
99jobs :
1010 setup :
1111 name : Setup
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
15- - name : Cache NPM Install
16- id : cache-npm
17- uses : actions/cache@v3
18- with :
19- path : ./node_modules
20- key : npm-${{ hashFiles('./package-lock.json') }}
21- - name : Install NPM dependencies
22- if : steps.cache-npm.outputs.cache-hit != 'true'
23- run : |
24- npm install
14+ - uses : actions/checkout@v3
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : " 22"
19+ - name : Cache NPM Install
20+ id : cache-npm
21+ uses : actions/cache@v3
22+ with :
23+ path : ./node_modules
24+ key : npm-${{ hashFiles('./package-lock.json') }}
25+ - name : Install NPM dependencies
26+ if : steps.cache-npm.outputs.cache-hit != 'true'
27+ run : |
28+ npm install
2529
2630 build :
2731 name : Build
2832 needs : setup
2933 runs-on : ubuntu-latest
3034 steps :
31- - uses : actions/checkout@v3
32- - name : Load NPM install
33- id : cache-npm
34- uses : actions/cache@v3
35- with :
36- path : ./node_modules
37- key : npm-${{ hashFiles('./package-lock.json') }}
38- - name : Install VSCE for packaging
39- run : npm install vsce
40- - name : Package Binary
41- run : ./node_modules/vsce/vsce package -o cortex-debug.vsix
42- - name : Upload Artifact
43- uses : actions/upload-artifact@v4
44- with :
45- name : cortex-debug.vsix
46- path : ./cortex-debug.vsix
35+ - uses : actions/checkout@v3
36+ - name : Setup Node.js
37+ uses : actions/setup-node@v4
38+ with :
39+ node-version : " 22"
40+ - name : Load NPM install
41+ id : cache-npm
42+ uses : actions/cache@v3
43+ with :
44+ path : ./node_modules
45+ key : npm-${{ hashFiles('./package-lock.json') }}
46+ - name : Install VSCE for packaging
47+ run : npm install vsce
48+ - name : Package Binary
49+ run : ./node_modules/vsce/vsce package -o cortex-debug.vsix
50+ - name : Upload Artifact
51+ uses : actions/upload-artifact@v4
52+ with :
53+ name : cortex-debug.vsix
54+ path : ./cortex-debug.vsix
4755
4856 lint :
4957 name : Lint
5058 needs : setup
5159 runs-on : ubuntu-latest
5260 steps :
53- - uses : actions/checkout@v3
54- - name : Load NPM install
55- id : cache-npm
56- uses : actions/cache@v3
57- with :
58- path : ./node_modules
59- key : npm-${{ hashFiles('./package-lock.json') }}
60- - name : Lint Project
61- run : npm run lint
61+ - uses : actions/checkout@v3
62+ - name : Setup Node.js
63+ uses : actions/setup-node@v4
64+ with :
65+ node-version : " 22"
66+ - name : Load NPM install
67+ id : cache-npm
68+ uses : actions/cache@v3
69+ with :
70+ path : ./node_modules
71+ key : npm-${{ hashFiles('./package-lock.json') }}
72+ - name : Lint Project
73+ run : npm run lint
0 commit comments