From 30ba17c91eb7d0ba001b27b56706faab46b0e0ad Mon Sep 17 00:00:00 2001 From: lewis_yan Date: Wed, 1 Apr 2026 10:53:43 +0800 Subject: [PATCH] chore: use pnpm instead of yarn in Jenkinsfile --- web/Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/Jenkinsfile b/web/Jenkinsfile index 565b769..2230533 100644 --- a/web/Jenkinsfile +++ b/web/Jenkinsfile @@ -19,14 +19,14 @@ pipeline { steps { sh """ cd web - # 安装 Node.js 和 yarn (如果不存在) - if ! command -v yarn &> /dev/null; then + # 安装 Node.js 和 pnpm (如果不存在) + if ! command -v pnpm &> /dev/null; then curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs - npm install -g yarn + npm install -g pnpm --registry=https://registry.npmmirror.com fi - yarn install --registry=https://registry.npmmirror.com - yarn build + pnpm install --registry=https://registry.npmmirror.com + pnpm build """ } }