Repository navigation
ci: cache turbo tasks with actions/cache and run jobs in parallel - #1427
Merged
Merged
Conversation
Replace the per-run dist cache with turbo's local cache persisted via actions/cache, keyed per job. Unchanged packages now replay build, lint and test results across runs instead of rebuilding. Since each job's turbo cache replays its own ^build dependencies, lint, test and test-browser no longer need to wait on the build job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hipstersmoothie
added a commit
that referenced
this pull request
Nov 22, 2026
… (#1441) build:browser didn't depend on its own package's build, so tshy could write its dist/browser/index.js stub after rollup had written the real bundle. Its outputs were also set to browser.js, which rollup doesn't write, so a turbo cache hit restored nothing and left tshy's stub in place. With the turbo cache now restored in CI (#1427), a cached rebuild produced the stub every time. - build:browser now depends on build and caches dist/browser/** - pnpm build (and so CI, deploy and release) runs a check that fails if packages/jimp/dist/browser/index.js is the stub or doesn't export Jimp Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
🚀 PR was released in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
distcache (.github/actions/build-cache) with turbo's local cache persisted throughactions/cache@v4(.github/actions/turbo-cache), following the Turborepo GitHub Actions guide. The cache key is the job name plus the commit, and each run restores the newest entry for that job, so packages that haven't changed reuse earlier build, lint and test results.lint,testandtest-browsernow depend oninstallinstead ofbuild, so they run in parallel with the build job. Each job's turbo cache restores thedistof the packages its tasks depend on (^build), and lint is plaineslint .with no type info.deploy.yml's build job uses the cache too. It shares thebuildkey with the build job inbuild.yml.installjob stays because it's a required status check.Local results
pnpm build: 16.3s cold, then 0.5s fully cached (36/36 tasks), withdistrestored after deleting it.Notes
🤖 Generated with Claude Code