ci: stop publishing the pnpm store from GitHub-hosted runners (#34588)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-27 15:32:51 -07:00
committed by GitHub
co-authored by OrcaWin
parent c63b949604
commit 03d359749e
3 changed files with 9 additions and 5 deletions
@@ -185,9 +185,10 @@ runs:
key: node-cache-${{ runner.os }}-${{ steps.pnpm-store.outputs.arch }}-pnpm-${{ hashFiles(inputs.cache-dependency-path) }}
# Producers can refresh access and publish misses without downloading existing archives.
# Not on GitHub-hosted runners: nothing restores that store, and direct installs beat restoring it.
- name: Keep pnpm download store without restoring
id: pnpm-store-lookup
if: steps.pnpm-store-mode.outputs.lookup-only == 'true'
if: steps.pnpm-store-mode.outputs.lookup-only == 'true' && runner.environment != 'github-hosted'
uses: actions/cache@v5
with:
# Twice-nested composite cleanup loses internal step outputs.