File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed
Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,20 @@ name: Build
33on :
44 pull_request :
55 push :
6- branches :
7- - main
86
97jobs :
108 test-node :
119 name : Test on Node.js
1210 runs-on : ubuntu-latest
1311 steps :
1412 - name : Checkout the project
15- uses : actions/checkout@v2
16- - name : Cache node modules
17- uses : actions/cache@v2
13+ uses : actions/checkout@v3
14+ - name : Use Node.js 16.x (LTS)
15+ uses : actions/setup-node@v3
1816 with :
19- path : ~/.npm
20- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21- restore-keys : |
22- ${{ runner.os }}-node-
23- - name : Use Node.js 13.11.0
24- uses : actions/setup-node@v1
25- with :
26- node-version : 13.11.0
27- - name : Install dependencies
28- run : npm i
17+ node-version : 16.x
18+ cache : ' npm'
19+ - run : npm ci
2920 - name : Lint Codebase
3021 run : npm run lint
3122 - name : Run Node.js Tests
Original file line number Diff line number Diff line change 88 publish-npm :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v3
12- - uses : actions/setup-node@v3
11+ - name : Checkout the project
12+ uses : actions/checkout@v3
13+ - name : Use Node.js 16.x (LTS)
14+ uses : actions/setup-node@v3
1315 with :
14- node-version : 14
16+ node-version : 16.x
1517 registry-url : https://registry.npmjs.org/
1618 cache : npm
1719 - run : npm ci
You can’t perform that action at this time.
0 commit comments