fix(workflow): properly propagate parallel build errors on Vercel

`wait` without arguments returns only the last process's exit status,
so a failure in the first background build was silently swallowed.
Capture PIDs and wait on each explicitly to ensure any failure blocks
the Vercel deployment.
This commit is contained in:
Cell
2026-06-22 10:46:19 +08:00
parent b7db52eb7e
commit db85dcbaf1
+4 -3
View File
@@ -101,9 +101,10 @@ main() {
# Build the site # Build the site
echo "Building the site..." echo "Building the site..."
build demo & build demo & pid_demo=$!
build test & build test & pid_test=$!
wait wait "${pid_demo}" || { echo "build demo failed"; exit 1; }
wait "${pid_test}" || { echo "build test failed"; exit 1; }
pnpm -F integration start pnpm -F integration start
} }