Skip to content

ci: Scope GitHub Actions caches by branch#12788

Merged
anthonyshew merged 1 commit into
mainfrom
shew/gha-cache-keys
May 12, 2026
Merged

ci: Scope GitHub Actions caches by branch#12788
anthonyshew merged 1 commit into
mainfrom
shew/gha-cache-keys

Conversation

@anthonyshew

@anthonyshew anthonyshew commented May 12, 2026

Copy link
Copy Markdown
Contributor
  • Scopes GitHub Actions caches to the current branch so unrelated branches do not share pnpm, Rust, or Cap'n Proto cache entries.
  • Keeps same-branch restore behavior while avoiding cross-branch cache pollution.

@anthonyshew anthonyshew requested a review from a team as a code owner May 12, 2026 14:42
@anthonyshew anthonyshew requested a review from tknickman May 12, 2026 14:42
@vercel

vercel Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm
turbo-site Ready Ready Preview, Comment, Open in v0 May 12, 2026 2:43pm

Comment thread .github/actions/setup-rust/action.yml
- name: Cache pnpm store
if: ${{ inputs.package-install == 'true' }}
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:

@vercel vercel Bot May 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR branches always get cold pnpm caches because the restore-key includes the branch name, preventing fallback to the main branch's cache.

Fix on Vercel

Comment thread .github/actions/setup-capnproto/action.yml
@anthonyshew anthonyshew merged commit 5fcb960 into main May 12, 2026
56 checks passed
@anthonyshew anthonyshew deleted the shew/gha-cache-keys branch May 12, 2026 16:08
anthonyshew added a commit that referenced this pull request May 14, 2026
## Summary

- Recreates the release PR that the failed v2.9.13 workflow never
opened.
- Advances `version.txt` to `2.9.14-canary.0` so the next release does
not retry `2.9.13`.
- Keeps package and Turborepo skill metadata aligned with the attempted
`2.9.13` release state.

## Context

The v2.9.13 release failed during npm publishing after a partial native
package publish. This PR only moves repository state forward; it does
not create a `v2.9.13` tag or complete the npm publish.

## Changes Since v2.9.12

- release(turborepo): 2.9.12 (#12774) (`c1f923a`)
- fix: Restore docs mobile menu (#12782) (`859c629`)
- ci: Use `pull_request` for PR title linting (#12787) (`4cf9fab`)
- ci: Scope GitHub Actions caches by branch (#12788) (`5fcb960`)
- test: Validate lockfiles without dependency downloads (#12789)
(`71f8c90`)
- Removed unneeded import form hash creation script in docs (#12799)
(`1779ad7`)
- fix: Validate auth callback state (#12802) (`84f4508`)
- fix: Harden VS Code extension command execution (#12800) (`91c90cb`)
- fix: Avoid project-local Yarn during detection (#12801) (`e8e629d`)
anthonyshew pushed a commit that referenced this pull request May 15, 2026
## Release v2.9.14

> [!CAUTION]
> Versioned docs aliasing FAILED. [View
logs](https://github.com/vercel/turborepo/actions/runs/25882155729)

### Changes

- release(turborepo): 2.9.12 (#12774) (`c1f923a`)
- fix: Restore docs mobile menu (#12782) (`859c629`)
- ci: Use `pull_request` for PR title linting (#12787) (`4cf9fab`)
- ci: Scope GitHub Actions caches by branch (#12788) (`5fcb960`)
- test: Validate lockfiles without dependency downloads (#12789)
(`71f8c90`)
- Removed unneeded import form hash creation script in docs (#12799)
(`1779ad7`)
- fix: Validate auth callback state (#12802) (`84f4508`)
- fix: Harden VS Code extension command execution (#12800) (`91c90cb`)
- fix: Avoid project-local Yarn during detection (#12801) (`e8e629d`)
- chore: Release 2.9.13 (#12803) (`fb8c9ae`)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant