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

SummaryHi everyone,I'm using Turborepo in a monorepo and exploring whether it's possible to

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743911813a4528504.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信