Commit 5da74a5
fix(ci): release workflow never built @modelforge/contracts before running tests
Same root cause already fixed in ci.yml's test/server/e2e/sbom jobs,
just not yet applied here: frontend/ and app/ depend on
packages/contracts via file:../packages/contracts, which npm ci only
symlinks into their node_modules -- it never builds that package's own
dist/ output or installs its own deps. 'Run tests' has no prebuild hook
(unlike the 'Build' step further down, which self-heals via app/'s own
prebuild), so vitest/vite failed to resolve '@modelforge/contracts' at
all -- exactly what broke the actual v1.3.0 release build just now.
Reproduced by removing packages/contracts/node_modules and dist/
entirely and confirming the same Vite import-analysis failure; fixed by
installing and building it first, then confirmed both
'npm --prefix frontend test' and 'npm --prefix app test' pass in full
(101 and 1018 tests respectively).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 41090fd commit 5da74a5
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
| |||
0 commit comments