最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

github - Can CI and CD workflows share remote cache in Turborepo? - Stack Overflow

programmeradmin1浏览0评论

Summary

Hi everyone,

I'm using Turborepo in a monorepo and exploring whether it's possible to reuse the build cache generated in CI during the CD (deployment) stage.

In my setup using GitHub Actions,

  • CI runs when a pull request is opened against the main branch.
  • CD runs when that pull request is merged into main.

Since both workflows build from the same commit and same environment, I expected the remote cache uploaded in CI to be reused in CD.

I've tested this, and it seems to work for some packages — for example, a UI package built with plain TypeScript correctly hits the remote cache in CD.
However, Next.js packages consistently miss the cache, even though nothing changes between the two builds.


❓ Question

Has anyone successfully reused CI-generated remote cache in CD with Turborepo?

Would love to hear about setups where this works reliably — especially with Next.js apps.

Thanks!

Example

CI

CD

Additional information

发布评论

评论列表(0)

  1. 暂无评论