Skip to content

Commit 0cc5690

Browse files
t3dotggclaude
andcommitted
ci(release): filtered installs prefer the current full store
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 64c90a7 commit 0cc5690

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/actions/setup-ci-deps/action.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ runs:
7171
echo "namespace=filtered-$(printf '%s' "$INSTALL_ARGS" | cksum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
7272
fi
7373
74-
# Filtered installs fall back to the full store, which holds every package.
74+
# Filtered installs prefer the current full store, which holds every package,
75+
# over an older store of their own.
7576
# The pnpm store stays a cache tarball on the runner's own disk. A store on a
7677
# Blacksmith sticky disk mounts in under a second, but pnpm then copies every
7778
# package across filesystems instead of hard-linking it: install took 28-49s
@@ -84,13 +85,17 @@ runs:
8485
path: ${{ steps.pnpm_store.outputs.path }}
8586
key: pnpm-${{ steps.pnpm_store.outputs.namespace }}-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
8687
restore-keys: |
88+
pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json') }}
8789
pnpm-${{ steps.pnpm_store.outputs.namespace }}-v1-${{ runner.os }}-${{ runner.arch }}-
8890
pnpm-full-v1-${{ runner.os }}-${{ runner.arch }}-
8991
9092
- name: Install dependencies
9193
if: inputs.install == 'true'
9294
shell: bash
93-
run: vp install ${{ inputs.install-args }}
95+
env:
96+
INSTALL_ARGS: ${{ inputs.install-args }}
97+
# Unquoted so each filter is its own argument.
98+
run: vp install $INSTALL_ARGS
9499

95100
# A filtered install that started from the current full store adds nothing
96101
# worth a second copy of it.

0 commit comments

Comments
 (0)