From c2f00028cfcb04ccbd14b4c1b201f3cffc022eab Mon Sep 17 00:00:00 2001 From: wfz Date: Thu, 7 May 2026 11:30:47 +0800 Subject: [PATCH] fix: install wrangler@3 locally --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c7aeae3..19659c0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stage('Install') { steps { echo 'Installing dependencies...' - sh 'npm ci' + sh 'npm ci && npm install wrangler@3 --save-dev' } } @@ -23,7 +23,7 @@ pipeline { stage('Deploy') { steps { echo 'Deploying to Cloudflare Pages...' - sh 'mv wrangler.toml wrangler.toml.bak && npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home --commit-dirty=true && mv wrangler.toml.bak wrangler.toml' + sh 'npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home' } } }