File tree Expand file tree Collapse file tree 1 file changed +5
-23
lines changed
Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change @@ -31,20 +31,11 @@ jobs:
3131
3232 steps :
3333 - uses : actions/checkout@v4
34-
3534 - uses : actions/setup-node@v4
3635 with :
37- node-version : ${{ matrix.node }}
38-
39- - name : Cache node_modules
40- uses : actions/cache@v4
41- with :
42- # Cache key uses the contents of `package-lock.json` to identify unique cache
43- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44- restore-keys : |
45- ${{ runner.OS }}-node-
46- path : |
47- node_modules
36+ cache : ' npm'
37+ cache-dependency-path : package-lock.json
38+ registry-url : https://registry.npmjs.org/
4839
4940 - run : npm ci
5041 - run : npm test
@@ -55,21 +46,12 @@ jobs:
5546 runs-on : ubuntu-latest
5647 steps :
5748 - uses : actions/checkout@v4
58-
5949 - uses : actions/setup-node@v4
6050 with :
51+ cache : ' npm'
52+ cache-dependency-path : package-lock.json
6153 registry-url : https://registry.npmjs.org/
6254
63- - name : Cache node_modules
64- uses : actions/cache@v4
65- with :
66- # Cache key uses the contents of `package-lock.json` to identify unique cache
67- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
68- restore-keys : |
69- ${{ runner.OS }}-node-
70- path : |
71- node_modules
72-
7355 - run : npm ci
7456 - run : npm publish
7557 env :
You can’t perform that action at this time.
0 commit comments