Repository navigation
Commit 4e9bd47
Include Node version in CI setup cache key [FFESUPPORT-731] (#120)
The composite setup action caches `**/node_modules` keyed on OS +
`yarn.lock` hash only. If a `node_modules` cache built under a
different Node version were restored, packages with native bindings
could load mismatched ABI binaries — and because the cache-hit path
skips the install step, deps wouldn't get rebuilt.
Capture the resolved Node version (`node -v`) into a step output, then
include it in both the primary cache key and the `restore-keys` prefix.
That way, bumping Node automatically busts the cache instead of relying
on lockfile churn to do it incidentally.
Stays with `actions/setup-node@v3` and `actions/cache@v3` — this is the
minimal-change variant. Caching Yarn's download cache instead of
`node_modules` would be the more robust pattern, but that's a bigger
restructure for a separate ticket if we want it.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 38b917b commit 4e9bd47
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | | - | |
| 23 | + | |
19 | 24 | | |
20 | | - | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
0 commit comments