Skip to content

Commit 6e5251d

Browse files
committed
fix cache
1 parent 0834da7 commit 6e5251d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ jobs:
178178
uses: actions/cache@v3
179179
with:
180180
path: node_modules/.cache/nx
181-
key: ${{ runner.os }}-nx
181+
key: nx-${{ runner.os }}-${{ github.ref }}-${{ env.HEAD_COMMIT }}
182+
restore-keys: |
183+
nx-${{ runner.os }}-${{ github.ref }}-${{ env.HEAD_COMMIT }}
184+
nx-${{ runner.os }}-${{ github.ref }}
185+
nx-${{ runner.os }}
182186
- name: Build packages
183187
# Under normal circumstances, using the git SHA as a cache key, there shouldn't ever be a cache hit on the built
184188
# packages, and so `yarn build` should always run. This `if` check is therefore only there for testing CI issues

0 commit comments

Comments
 (0)