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')) {