fix: Drone web-admin 构建提高 Node 堆到 3GB 以降低 OOM
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5651bcd85e
commit
61fdb6ebcd
1 file changed
+3
-2
+3
-2
@@ -22,7 +22,7 @@ steps:
|
||||
- name: build-web-admin
|
||||
image: node:20-bookworm
|
||||
environment:
|
||||
NODE_OPTIONS: --max-old-space-size=1536
|
||||
NODE_OPTIONS: --max-old-space-size=3072
|
||||
commands:
|
||||
- set -eu
|
||||
- cp web-admin/.env.docker web-admin/.env.test
|
||||
@@ -30,7 +30,8 @@ steps:
|
||||
- corepack prepare pnpm@9.15.9 --activate
|
||||
- cd web-admin
|
||||
- pnpm install --frozen-lockfile
|
||||
- pnpm build:test
|
||||
# 降低并行以减轻内存峰值
|
||||
- NODE_OPTIONS=--max-old-space-size=3072 pnpm exec vite build --mode test
|
||||
- cd ..
|
||||
- mkdir -p artifacts
|
||||
- tar -C web-admin -czf artifacts/web-admin-dist.tar.gz dist
|
||||
|
||||
Reference in new issue
Block a user