en un clic
node-cache-update
// Update GitHub Actions node module cache version when dependencies change. Use when modifying package.json, yarn.lock, adding/removing/updating npm packages, or changing node dependencies.
// Update GitHub Actions node module cache version when dependencies change. Use when modifying package.json, yarn.lock, adding/removing/updating npm packages, or changing node dependencies.
| name | node-cache-update |
| description | Update GitHub Actions node module cache version when dependencies change. Use when modifying package.json, yarn.lock, adding/removing/updating npm packages, or changing node dependencies. |
When node dependencies are added, removed, or updated in this monorepo, the GitHub Actions cache must be invalidated to ensure CI builds use the correct dependencies.
Update the cache version when:
package.jsonpackage.jsonyarn.lock.github/workflows/celo-monorepo.ymlNODE_MODULE_CACHE_VERSION environment variable (around line 27)env:
# Increment these to force cache rebuilding
NODE_MODULE_CACHE_VERSION: 10 # <-- Increment this number
GitHub Actions caches node_modules based on this version number combined with yarn.lock hash. If you change dependencies but don't increment the cache version, CI may: