Commit a2c5a89
authored
fix(ci): cache every workspace's node_modules, not just the root and one app (#9596)
The node_modules cache saved only `node_modules` and
`apps/loopover-ui/node_modules`. npm decides per dependency whether it
hoists to the root or nests under a workspace, and that decision moves
whenever a version range changes -- #8608's eslint-10 bump nested
`@eslint/js` under both UI apps, so on a cache HIT
`apps/loopover-miner-ui/node_modules` did not exist at all and
`eslint .` died with "Cannot find module '@eslint/js'", failing UI lint
on every PR. It reproduces on no developer machine, because a real
npm ci/npm install always creates those directories.
Glob `apps/*` + `packages/*` (the workspace globs from package.json) so
the cache follows npm's layout automatically instead of re-breaking on
the next hoist change. review-enrichment and control-plane are not
workspaces -- they keep their own installs and their own cache steps.1 parent b19111d commit a2c5a89
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
85 | | - | |
| 96 | + | |
| 97 | + | |
86 | 98 | | |
0 commit comments