From 0f1fb1af5682e4fdb31d1bca056c822a5c31d315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Tue, 31 Mar 2026 17:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20npm=20peer=20depend?= =?UTF-8?q?ency=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 --legacy-peer-deps 参数处理 swagger-ui-react 的 React 版本冲突 - 设置 CI=true 环境变量抑制非关键警告 --- .woodpecker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 300714d..2d82d44 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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