ci: prune devDependencies from live tree after deploy build
This commit is contained in:
1 parent
ca49c6b5a8
commit
de28f26e0e
1 file changed
+6
@@ -171,6 +171,12 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Drop devDependencies before cutover: the live tree only needs runtime
|
||||||
|
# deps (next start). Kept after build + db:migrate, which both require
|
||||||
|
# devDeps (typescript, tsx). NOTE: manual tsx-driven scripts
|
||||||
|
# (pnpm db:migrate / pnpm jobs:worker) need a full install afterwards.
|
||||||
|
pnpm install --prod --frozen-lockfile
|
||||||
|
|
||||||
cd "${LIVE}"
|
cd "${LIVE}"
|
||||||
echo "Hard reset live tree to origin/main (no nuclear src wipe)..."
|
echo "Hard reset live tree to origin/main (no nuclear src wipe)..."
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
|
|||||||
Reference in new issue
Block a user