fix: skip typecheck when building main branch for QA comparison

Main branch may have transient TS errors when built with the PR
branch's lockfile. Since we only need the dist for visual comparison,
run nx build directly instead of pnpm build (which includes typecheck).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
snomiao
2026-03-20 21:48:38 +00:00
parent 41999c2e0f
commit 78fb9ef27f

View File

@@ -104,7 +104,8 @@ jobs:
git stash --include-untracked || true
git checkout origin/main -- .
pnpm install --frozen-lockfile
pnpm build
# Skip typecheck — main may have transient TS errors with our lockfile
pnpm exec nx build
mv dist dist-before
# Restore PR branch
git checkout - -- .