Skip to content

Commit 8915e5e

Browse files
authored
cache node_modules in CI by unique workflows (#4490)
1 parent 6154616 commit 8915e5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .github/workflows/npm-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
path: |
3333
node_modules
34-
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
34+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('.github/workflows/npm-publish.yml') }}
3535

3636
- name: Install all yarn packages
3737
if: steps.cached-node_modules.outputs.cache-hit != 'true'

Diff for: .github/workflows/performance.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
path: |
3737
node_modules
38-
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
38+
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('.github/workflows/performance.yml') }}
3939

4040
- name: Install all yarn packages
4141
if: steps.cached-node_modules.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)