fix: use npx wrangler

This commit is contained in:
wfz
2026-05-07 11:22:23 +08:00
parent 78d758a210
commit 02687701ee

4
Jenkinsfile vendored
View File

@@ -9,7 +9,7 @@ pipeline {
stage('Install') { stage('Install') {
steps { steps {
echo 'Installing dependencies...' echo 'Installing dependencies...'
sh 'npm ci && npm install -g wrangler' sh 'npm ci'
} }
} }
@@ -23,7 +23,7 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps { steps {
echo 'Deploying to Cloudflare Pages...' echo 'Deploying to Cloudflare Pages...'
sh '/usr/local/bin/wrangler pages deploy docs/.vitepress/dist --project-name=web-home' sh 'npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home --yes'
} }
} }
} }