fix: CI web 构建改用 2G 堆内存,适配测试机小内存
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8a48b2cf02
commit
f067c95d93
1 file changed
+2
-1
+2
-1
@@ -46,7 +46,8 @@ steps:
|
||||
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
|
||||
- cd web
|
||||
- npm install --legacy-peer-deps --no-audit --no-fund
|
||||
- npm run build:prod
|
||||
# 测试机约 3.6G 内存,勿用 package.json 里 6~8G 的 max-old-space-size
|
||||
- node --max-old-space-size=2048 node_modules/vite/bin/vite.js build --mode production
|
||||
- test -f dist/index.html
|
||||
- tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" .
|
||||
- ls -lh "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz"
|
||||
|
||||
Reference in new issue
Block a user