File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 7
7
timeout-minutes : 5
8
8
strategy :
9
9
matrix :
10
- node-version : [14 ]
10
+ node-version : [16 ]
11
11
12
12
steps :
13
13
- name : Checkout repository
@@ -20,19 +20,18 @@ jobs:
20
20
with :
21
21
node-version : ${{ matrix.node-version }}
22
22
23
- - name : Cache node modules
23
+ - name : Cache dependencies
24
24
uses : actions/cache@v2
25
- env :
26
- cache-name : cache-node-modules
27
25
with :
28
- # npm cache files are stored in `~/.npm` on Linux/macOS
29
- path : ~/.npm
30
- key : ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
31
- restore-keys : |
32
- ${{ runner.os }}-node-
26
+ path : |
27
+ node_modules
28
+ */*/node_modules
29
+ key : ${{ runner.os }}-${{ hashFiles('**/package.json', './package.json') }}
30
+ id : cache
33
31
34
32
- name : Install dependencies
35
- run : npm install
33
+ if : steps.cache.outputs.cache-hit != 'true'
34
+ run : npm install --prefer-offline
36
35
37
36
- name : Lint commit message
38
37
run : npx commitlint --from=HEAD~1
You can’t perform that action at this time.
0 commit comments