From a4f518b880cb930e09e8cb88644659e8f2de520c Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Thu, 23 Jul 2026 17:31:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E5=89=8D=E7=AB=AF=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=94=B9=E7=94=A8npm=20ci=EF=BC=88=E9=A1=B9=E7=9B=AE=E7=94=A8p?= =?UTF-8?q?ackage-lock.json=E8=80=8C=E9=9D=9Epnpm=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/step_frontend_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ci/step_frontend_install.sh b/scripts/ci/step_frontend_install.sh index c2d9a429c..8d1729b02 100755 --- a/scripts/ci/step_frontend_install.sh +++ b/scripts/ci/step_frontend_install.sh @@ -1,6 +1,6 @@ #!/bin/sh # CI 公共步骤:前端依赖安装 -# 直接在 CI 容器内运行(CI 镜像已包含 Node.js + pnpm),无需 Docker 嵌套 +# 直接在 CI 容器内运行(CI 镜像已包含 Node.js),无需 Docker 嵌套 set -eu MODE="${1:-full}" @@ -10,9 +10,9 @@ echo "=== 前端依赖安装开始 (模式: $MODE) ===" cd apps/web # 配置国内镜像源加速 -pnpm config set registry https://registry.npmmirror.com +npm config set registry https://registry.npmmirror.com # 安装依赖 -pnpm install --frozen-lockfile +npm ci --no-audit --no-fund echo "=== 前端依赖安装完成 ==="