Skip to content

Commit 808b582

Browse files
committed
refactor: add os to cache key in release
1 parent 0455b1f commit 808b582

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
uses: actions/cache@v3
7373
with:
7474
path: "**/node_modules"
75-
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
75+
key: yarn-build-linux-amd64-${{ hashFiles('**/yarn.lock') }}
7676
restore-keys: |
77-
yarn-build-
77+
yarn-build-linux-amd64-
7878
7979
# NOTE: && here is deliberate - GitHub puts each line in its own `.sh`
8080
# file when running inside a docker container.
@@ -243,9 +243,9 @@ jobs:
243243
uses: actions/cache@v3
244244
with:
245245
path: "**/node_modules"
246-
key: yarn-build-${{ hashFiles('**/yarn.lock') }}
246+
key: yarn-build-macos-${{ hashFiles('**/yarn.lock') }}
247247
restore-keys: |
248-
yarn-build-
248+
yarn-build-macos-
249249
250250
- name: Build standalone release
251251
run: npm run release:standalone

0 commit comments

Comments
 (0)