admin管理员组

文章数量:1352277

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

本文标签: githubCan CI and CD workflows share remote cache in TurborepoStack Overflow