Skip to content

Commit 0cd1353

Browse files
fix: node modules cache
1 parent 77c549a commit 0cd1353

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/cache@v2
2222
with:
2323
path: node_modules
24-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
24+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
2525

2626
- name: NPM Install
2727
if: steps.cache.outputs.cache-hit != 'true'
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/cache@v2
3838
with:
3939
path: node_modules
40-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
40+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
4141

4242
- name: Build
4343
run: npm run build:ci
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/cache@v2
5959
with:
6060
path: node_modules
61-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
61+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
6262

6363
- name: Lint
6464
run: npm run lint
@@ -81,7 +81,7 @@ jobs:
8181
uses: actions/cache@v2
8282
with:
8383
path: node_modules
84-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
84+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
8585

8686
- id: set-test-chunks
8787
name: Set Chunks
@@ -111,7 +111,7 @@ jobs:
111111
uses: actions/cache@v2
112112
with:
113113
path: node_modules
114-
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
114+
key: ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
115115

116116
- name: Test
117117
run: npm run test:ci -- $(echo $CHUNKS | jq -r '.[${{ matrix.chunk }}] | .[] | "--testPathPattern "+.')

0 commit comments

Comments
 (0)