Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f067c95d93 |
+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