File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,10 @@ jobs:
1212 - name : Use Node.js
1313 uses : actions/setup-node@v3
1414 with :
15- # http://karma-runner.github.io/6.3/intro/installation.html
16- node-version : 14
17-
18- - name : Cache dependencies
19- uses : actions/cache@v3
20- with :
21- path : |
22- node_modules
23- */*/node_modules
24- key : ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
25- id : cache
15+ cache : npm
16+ node-version-file : .nvmrc
2617
2718 - name : Install dependencies
28- if : steps.cache.outputs.cache-hit != 'true'
2919 run : npm install --prefer-offline
3020
3121 - name : Lint JavaScript
Original file line number Diff line number Diff line change @@ -11,17 +11,13 @@ jobs:
1111 with :
1212 fetch-depth : 0
1313
14- - name : Cache dependencies
15- uses : actions/cache @v3
14+ - name : Use Node.js
15+ uses : actions/setup-node @v3
1616 with :
17- path : |
18- node_modules
19- */*/node_modules
20- key : ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
21- id : cache
17+ cache : npm
18+ node-version-file : .nvmrc
2219
2320 - name : Install dependencies
24- if : steps.cache.outputs.cache-hit != 'true'
2521 run : npm install --prefer-offline
2622
2723 - name : Lint commit message
You can’t perform that action at this time.
0 commit comments