File tree 3 files changed +6
-18
lines changed
3 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,11 @@ jobs:
11
11
12
12
- name : Use Node.js
13
13
uses : actions/setup-node@v3
14
-
15
- - name : Cache dependencies
16
- uses : actions/cache@v3
17
14
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
23
17
24
18
- name : Install dependencies
25
- if : steps.cache.outputs.cache-hit != 'true'
26
19
run : npm install --prefer-offline
27
20
28
21
- name : Lint JavaScript files
Original file line number Diff line number Diff line change @@ -11,17 +11,13 @@ jobs:
11
11
with :
12
12
fetch-depth : 0
13
13
14
- - name : Cache dependencies
15
- uses : actions/cache @v3
14
+ - name : Use Node.js
15
+ uses : actions/setup-node @v3
16
16
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
22
19
23
20
- name : Install dependencies
24
- if : steps.cache.outputs.cache-hit != 'true'
25
21
run : npm install --prefer-offline
26
22
27
23
- name : Lint commit message
Original file line number Diff line number Diff line change 6
6
jobs :
7
7
size :
8
8
runs-on : ubuntu-latest
9
- timeout-minutes : 5
10
9
env :
11
10
CI_JOB_NUMBER : 1
12
11
You can’t perform that action at this time.
0 commit comments