The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 03:15 UTC
ci: stacked PRs stop evicting the shared pnpm cache (#31937)
A PR based on a branch other than the default saved a ~1 GB pnpm store that only its own reruns can read, which evicted shared entries. These PRs still restore and install; pushes, releases, and default-base PRs save as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Theo Browne committed
Nov 6, 2026 at 02:41 UTC
9899b4724d14ad1911a228cfebeca35aa6cad8b1
1 file changed
+3
-1
.github/actions/setup-ci-deps/action.yml
+3
-1
@@ -123,10 +123,12 @@ runs:
123
key: ${{ steps.pnpm_verified.outputs.cache-primary-key }}
124
125
# A filtered install that started from the current full store adds nothing
126
- # worth a second copy of it.
126
+ # worth a second copy of it. A stacked PR, based on a branch other than the
127
+ # default, saves a ~1 GB store only its own reruns can read, so it only restores.
128
- name: Save pnpm store
129
if: >-
130
inputs.install == 'true' &&
131
+ (github.event_name != 'pull_request' || github.base_ref == github.event.repository.default_branch) &&
132
steps.pnpm_cache.outputs.cache-hit != 'true' &&
133
(steps.pnpm_store.outputs.namespace == 'full' ||
134
steps.pnpm_cache.outputs.cache-matched-key != format('pnpm-full-v1-{0}-{1}-{2}', runner.os, runner.arch, hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', 'package.json')))