Skip to content

Commit ea79c57

Browse files
authored
Chore: Bump node_modules cache key (RocketChat#22250)
1 parent 81232cb commit ea79c57

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎.github/workflows/build_and_test.yml‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@ jobs:
5757
key: ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
5858

5959
- name: Cache node modules
60-
if: steps.cache-cypress.outputs.cache-hit == 'true'
6160
id: cache-nodemodules
6261
uses: actions/cache@v2
6362
with:
6463
path: |
6564
./node_modules
6665
./ee/server/services/node_modules
67-
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
66+
key: ${{ runner.OS }}-node_modules-2-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
6867

6968
- name: Cache meteor local
7069
uses: actions/cache@v2
@@ -239,14 +238,13 @@ jobs:
239238
key: ${{ runner.OS }}-cache-cypress-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
240239

241240
- name: Cache node modules
242-
if: steps.cache-cypress.outputs.cache-hit == 'true'
243241
id: cache-nodemodules
244242
uses: actions/cache@v2
245243
with:
246244
path: |
247245
./node_modules
248246
./ee/server/services/node_modules
249-
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
247+
key: ${{ runner.OS }}-node_modules-2-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
250248

251249
- name: NPM install
252250
if: steps.cache-nodemodules.outputs.cache-hit != 'true' || steps.cache-cypress.outputs.cache-hit != 'true'
@@ -310,7 +308,7 @@ jobs:
310308
path: |
311309
./node_modules
312310
./ee/server/services/node_modules
313-
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
311+
key: ${{ runner.OS }}-node_modules-2-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
314312

315313
- name: Cache meteor local
316314
uses: actions/cache@v2

0 commit comments

Comments
 (0)