[errors/no-cache] Prevent GitHub Actions cache from going stale (#27362)
Closes: https://github.com/vercel/next.js/issues/27129 This configuration is similar to what we've been using at Statsig, and it's the best general purpose config I could think of. At Statsig we also invalidate our caches weekly, since sometimes we spend weeks without updating dependencies for some of our NextJS apps, and the artifact bloat means GitHub starts invalidating other caches in our repo. I could add that step to this diff as well, but I think that's a bit too specific (likely only a problem in monorepos with several caches). In any case, the previous example also has this problem. ## Documentation / Examples - [x] Make sure the linting passes
Showing
Please
register
or
sign in
to comment