File tree Expand file tree Collapse file tree 1 file changed +7
-23
lines changed Expand file tree Collapse file tree 1 file changed +7
-23
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,14 @@ jobs:
21
21
runs-on : ${{ matrix.os }}
22
22
23
23
steps :
24
+ - uses : actions/checkout@v4
24
25
- uses : actions/setup-node@v4
25
26
with :
26
27
node-version : ${{ matrix.node }}
27
-
28
- - name : Checkout Repo
29
- uses : actions/checkout@v4
30
-
31
- - name : cache node_modules
32
- uses : actions/cache@v4
33
- id : cache
34
- with :
35
- path : |
36
- node_modules
37
- key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
28
+ cache : ' npm'
29
+ cache-dependency-path : ' **/package-lock.json'
38
30
39
31
- name : Install Dependencies
40
- if : steps.cache.outputs.cache-hit != 'true'
41
32
run : npm ci
42
33
43
34
- name : Lint
@@ -63,20 +54,13 @@ jobs:
63
54
runs-on : ${{ matrix.os }}
64
55
65
56
steps :
57
+ - uses : actions/checkout@v4
66
58
- uses : actions/setup-node@v4
67
59
with :
68
60
node-version : ${{ matrix.node }}
69
-
70
- - name : Checkout Repo
71
- uses : actions/checkout@v4
72
-
73
- - name : cache node_modules
74
- uses : actions/cache@v4
75
- id : cache
76
- with :
77
- path : node_modules
78
- key : ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
79
-
61
+ cache : ' npm'
62
+ cache-dependency-path : ' **/package-lock.json'
63
+
80
64
- name : Versioning
81
65
env :
82
66
GH_TOKEN : ${{ secrets.GH_TOKEN }}
You can’t perform that action at this time.
0 commit comments