fix: 修复 npm peer dependency 警告
- 添加 --legacy-peer-deps 参数处理 swagger-ui-react 的 React 版本冲突 - 设置 CI=true 环境变量抑制非关键警告
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user