From db85dcbaf17be3a2f091fcbd153823b85a3ef86b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 22 Jun 2026 10:46:19 +0800 Subject: [PATCH] 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. --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 2fbb5ba3..0eccdb6b 100644 --- a/build.sh +++ b/build.sh @@ -101,9 +101,10 @@ main() { # Build the site echo "Building the site..." - build demo & - build test & - wait + build demo & pid_demo=$! + build test & pid_test=$! + wait "${pid_demo}" || { echo "build demo failed"; exit 1; } + wait "${pid_test}" || { echo "build test failed"; exit 1; } pnpm -F integration start }