Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/actions/setup-workspace/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ runs:
# Globbing `apps/*` + `packages/*` (the workspace globs from package.json) makes the cache follow
# npm's layout automatically instead of re-breaking on the next hoist change. review-enrichment
# and control-plane are NOT workspaces -- they have their own installs and their own cache steps.
key: npm-${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true) && 'fork' || 'trusted' }}-${{ hashFiles('.nvmrc') }}-${{ hashFiles('package.json', 'apps/*/package.json', 'packages/*/package.json', 'package-lock.json') }}
# `v2` is a manual cache-generation salt, and bumping it is REQUIRED whenever the `path` list
# above changes. Widening `path` alone does not invalidate anything: the key is computed from the
# manifests only, so an unchanged lockfile keeps HITTING the pre-existing entry, which was
# archived from the narrow path list and therefore still restores no
# `apps/loopover-miner-ui/node_modules` -- and a hit skips `npm ci`, so the tree stays incomplete
# exactly as before. (#9596 widened the list without this bump and did not take effect.) Bumping
# the salt forces one clean miss so a complete tree gets archived under the current list.
key: npm-v2-${{ (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true) && 'fork' || 'trusted' }}-${{ hashFiles('.nvmrc') }}-${{ hashFiles('package.json', 'apps/*/package.json', 'packages/*/package.json', 'package-lock.json') }}

- name: Install dependencies (retry on transient failures)
if: ${{ steps.node-modules-cache.outputs.cache-hit != 'true' }}
Expand Down
Loading