Commit 78d7999
committed
CI: Make webpack cache key dynamic by Node major and drop build.mjs hash
- Export Node major to GITHUB_ENV for use in cache key
- Avoid hardcoding node20 in cache key; use node${env.NODE_MAJOR}
- Remove build.mjs from cache key; rely on webpack buildDependencies invalidation
This keeps cache keys portable across Node upgrades while avoiding
unnecessary cache misses. Webpack will invalidate restored caches when
build.mjs changes via buildDependencies.1 parent 29b332b commit 78d7999
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments