From 07d1eb553cdbe87e5d85634af83c2bef1fe68093 Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Mon, 29 Dec 2025 15:43:59 +0800 Subject: [PATCH] Jenkins build --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7e089cd..4e20aa4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,14 +52,12 @@ pipeline { if (fileExists('package.json')) { echo "package.json found" - // 安装 pnpm - sh 'npm install -g pnpm' // 使用 pnpm 安装依赖 - sh 'pnpm install --frozen-lockfile' + sh 'npm install' // 构建项目 - sh 'pnpm run build' + sh 'npm run build' // 检查 dist 目录是否存在 if (!fileExists('dist')) {