fix: web 打包改用 npm install(仓库未纳入 package-lock.json)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
97706f1c5e
commit
6ccb9f8cd4
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -44,7 +44,8 @@ steps:
|
||||
- echo "==> web tag=${DRONE_TAG}"
|
||||
- mkdir -p "/hzdyjs-releases/${DRONE_TAG}"
|
||||
- cd web
|
||||
- npm ci
|
||||
# package-lock.json 被 gitignore,仓库内无 lock,改用 npm install
|
||||
- npm install
|
||||
- npm run build:prod
|
||||
- test -f dist/index.html
|
||||
- tar -C dist -czf "/hzdyjs-releases/${DRONE_TAG}/web-${DRONE_TAG}.tar.gz" .
|
||||
|
||||
@@ -43,7 +43,8 @@
|
||||
源文件:`backend/ruoyi-admin/target/ruoyi-admin.jar` → `backend-<tag>.jar`
|
||||
|
||||
2. **web**(`node:20-bookworm`)
|
||||
`npm ci` → `npm run build:prod`
|
||||
`npm install` → `npm run build:prod`
|
||||
(`web/package-lock.json` 被 gitignore,仓库无 lock,不能用 `npm ci`)
|
||||
打包 `web/dist` → `web-<tag>.tar.gz`
|
||||
|
||||
3. **mobile**(`node:20-bookworm` + corepack/pnpm)
|
||||
|
||||
Reference in new issue
Block a user