Skip to content

Commit 9bc6872

Browse files
Copilotpethers
andauthored
ci(release): scope cache key hashFiles to root package-lock.json
The Post Cache Cypress binary step in the prepare job was failing because hashFiles('**/package-lock.json') re-evaluates after the job runs, by which point the workspace contains node_modules, generated docs, and worktree leftovers from JamesIves/github-pages-deploy-action. Recursing across all of that made hashFiles fail with "The template is not valid". Use the root-scoped package-lock.json (only one exists in this repo) for both the Cypress binary cache and the Vite build cache keys. Agent-Logs-Url: https://github.com/Hack23/blacktrigram/sessions/ebbb6ddd-5533-4b82-a333-de9f0299ca5a Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
1 parent 98371c8 commit 9bc6872

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
9292
with:
9393
path: ~/.cache/Cypress
94-
key: v2-cypress-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
94+
key: v2-cypress-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
9595
restore-keys: |
9696
v2-cypress-${{ runner.os }}-
9797
@@ -203,7 +203,7 @@ jobs:
203203
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
204204
with:
205205
path: node_modules/.vite
206-
key: v2-${{ runner.os }}-vite-${{ hashFiles('**/package-lock.json') }}
206+
key: v2-${{ runner.os }}-vite-${{ hashFiles('package-lock.json') }}
207207
restore-keys: |
208208
v2-${{ runner.os }}-vite-
209209

0 commit comments

Comments
 (0)