Skip to content

chore(ci): move turbo caching to actions/cache via shared setup action#2546

Merged
joshuaellis merged 1 commit into
nextfrom
ci/turbo-github-actions-cache
Jun 19, 2026
Merged

chore(ci): move turbo caching to actions/cache via shared setup action#2546
joshuaellis merged 1 commit into
nextfrom
ci/turbo-github-actions-cache

Conversation

@joshuaellis

Copy link
Copy Markdown
Member

Why

The Turbo remote cache has been silently dead — TURBO_TOKEN fails authentication on every run, so CI rebuilds everything cold (0 cached, 8 total) and the logs are littered with auth warnings.

What

Switch to GitHub's native actions/cache for Turbo's .turbo directory, so build output is reused across runs with no Vercel token required. A shared setup composite action absorbs the pnpm + node + install boilerplate every workflow was hand-rolling, with an opt-in flag for the cache.

Alongside this, the Tests workflow stops doing work it never needed: unit tests run against source, so the redundant build step is gone, and the unit/type/e2e jobs no longer serialise behind a build job whose artifacts they never consumed. The Turbo build input was also still pointing at the removed tsup config — it now tracks tsdown, so bundler-config changes correctly invalidate the cache.

@changeset-bot

changeset-bot Bot commented Jun 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 70171bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@joshuaellis joshuaellis changed the title ci: move turbo caching to actions/cache via shared setup action chore(ci): move turbo caching to actions/cache via shared setup action Jun 19, 2026
@joshuaellis
joshuaellis merged commit d4c86d6 into next Jun 19, 2026
20 checks passed
@joshuaellis
joshuaellis deleted the ci/turbo-github-actions-cache branch June 19, 2026 18:59
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