caelum0x b8d1c115a7 fix(ci): build workspace deps before docs-site render in deploy-site.yml
Deploy docs site has failed on every push to main since before 2026-08-18.
It ran `pnpm --filter @lawsynth/docs-site run render` directly, which only
builds docs-site itself — never its workspace deps `@lawsynth/world-schema`
and `@lawsynth/world-viewer`, whose package.json `exports` point at
`./dist/src/index.*` which only exists after each package's own `tsc`
build runs. `pnpm install` just symlinks workspace packages, it doesn't
build them, so tsc failed with TS2307 (cannot find module) every time.

pr.yml's `typescript` job never hit this because it calls the root
`build` script (`pnpm -r --if-present run build && pnpm --filter
@lawsynth/docs-site run render`), which builds every workspace package in
topological order first — that's why PR checks passed while deploys kept
failing.

Fix: add the same `pnpm -r --if-present run build` step to deploy-site.yml
before the render step, mirroring the root build script. Verified locally:
`pnpm -r --if-present run build` builds all 10 packages in order, then
`pnpm --filter @lawsynth/docs-site run render` renders 330 files
successfully (previously failed in ~13s with TS2307).

This is unrelated to PR #9's merge-conflict-marker fix — that issue was
already independently resolved on main in 760bc7e (2026-10-17).
2026-10-19 13:35:57 +03:00
..
2026-08-16 22:04:11 +03:00