File tree Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Expand file tree Collapse file tree 3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,11 @@ jobs:
1111
1212 - name : Use Node.js
1313 uses : actions/setup-node@v3
14-
15- - name : Cache dependencies
16- uses : actions/cache@v3
1714 with :
18- path : |
19- node_modules
20- */*/node_modules
21- key : ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
22- id : cache
15+ cache : npm
16+ node-version-file : .nvmrc
2317
2418 - name : Install dependencies
25- if : steps.cache.outputs.cache-hit != 'true'
2619 run : npm install --prefer-offline
2720
2821 - name : Lint JavaScript files
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
Original file line number Diff line number Diff line change 66jobs :
77 size :
88 runs-on : ubuntu-latest
9- timeout-minutes : 5
109 env :
1110 CI_JOB_NUMBER : 1
1211
You can’t perform that action at this time.
0 commit comments