From 58dcb618ae83bd2e8e9370ef342aa3d51c3073d2 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 14 Sep 2026 15:43:36 -0400 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=A3=80?= =?UTF-8?q?=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b4236f..2f9bd85 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,15 +39,20 @@ pipeline { // This command should run on the agent to configure the git environment sh 'git config --global url."https://github.com/".insteadOf git://github.com/' sh ''' - npm install -g corepack@latest - node --version - corepack --version + set -eu - rm -rf "$HOME/.cache/node/corepack" + echo "=== Environment ===" - corepack enable - corepack prepare pnpm@12.4.1 --activate - pnpm --version + node --version + npm --version + + corepack enable + + echo "Corepack:" + corepack --version + + echo "pnpm:" + pnpm --version ''' }