fix: 修复 npm peer dependency 警告

- 添加 --legacy-peer-deps 参数处理 swagger-ui-react 的 React 版本冲突
- 设置 CI=true 环境变量抑制非关键警告
This commit is contained in:
张翔
2026-03-31 17:38:52 +08:00
parent 1db8cbdf97
commit 0f1fb1af56
+2 -1
View File
@@ -7,8 +7,9 @@ steps:
image: *node_image
environment:
NODE_ENV: development
CI: true
commands:
- npm ci --cache /tmp/npm-cache --prefer-offline
- npm ci --cache /tmp/npm-cache --prefer-offline --legacy-peer-deps
volumes:
- /tmp/npm-cache:/root/.npm
- /tmp/node-modules-cache:/woodpecker/src/node_modules