fix: install wrangler@3 locally
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -9,7 +9,7 @@ pipeline {
|
|||||||
stage('Install') {
|
stage('Install') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Installing dependencies...'
|
echo 'Installing dependencies...'
|
||||||
sh 'npm ci'
|
sh 'npm ci && npm install wrangler@3 --save-dev'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ pipeline {
|
|||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Deploying to Cloudflare Pages...'
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user