fix(deploy): require prebuilt web artifact for production
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-22 09:34:27 +08:00
parent 668838f7fb
commit 631328ea7c
5 changed files with 48 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -eu
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
OUTPUT_PATH="${1:-$ROOT_DIR/release-artifact.tar}"
cd "$ROOT_DIR/apps/web"
npm ci
npm run build
cd "$ROOT_DIR"
tar --exclude=.git --exclude=apps/web/node_modules -cf "$OUTPUT_PATH" .
echo "Release artifact written to $OUTPUT_PATH"