Skip to content

Commit 652a4d5

Browse files
committed
ci: add os to npm cache key
1 parent 5507cee commit 652a4d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
uses: actions/cache@v1
7171
with:
7272
path: node_modules
73-
key: npm-cache-${{ hashFiles('yarn.lock') }}
73+
key: npm-cache-${{ matrix.os }}-${{ hashFiles('yarn.lock') }}
7474
restore-keys: |
7575
npm-cache-
7676
@@ -127,7 +127,7 @@ jobs:
127127
uses: actions/cache@v1
128128
with:
129129
path: node_modules
130-
key: npm-cache-${{ hashFiles('yarn.lock') }}
130+
key: npm-cache-${{ matrix.os }}-${{ hashFiles('yarn.lock') }}
131131
restore-keys: |
132132
npm-cache-
133133

0 commit comments

Comments
 (0)