diff --git a/Jenkinsfile b/Jenkinsfile index 3022d4b..f83aeed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,11 +4,11 @@ def deploy() { stage('Deploy (Ubuntu)') { checkout scm nodejs(nodeJSInstallationName: 'Node23') { - sh 'yarn install --frozen-lockfile --production=false' - sh 'NODE_ENV=production yarn build' + sh 'pnpm install --frozen-lockfile --production=false' + sh 'NODE_ENV=production pnpm build' // Deploy to Cloudflare Pages using wrangler withCredentials([string(credentialsId: 'cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) { - sh 'yarn wrangler pages deploy build' + sh 'pnpm wrangler pages deploy build' } } } @@ -29,10 +29,10 @@ def buildOnLabel(label, buildCommand) { nodejs(nodeJSInstallationName: 'Node23') { if (isUnix()) { sh 'node -v' - sh 'yarn -v' + sh 'pnpm -v' } else { bat 'node -v' - bat 'yarn -v' + bat 'pnpm -v' } } } @@ -40,9 +40,9 @@ def buildOnLabel(label, buildCommand) { stage("Install Dependencies (${label})") { nodejs(nodeJSInstallationName: 'Node23') { if (isUnix()) { - sh 'yarn install --frozen-lockfile --production=false' + sh 'pnpm install --frozen-lockfile --production=false' } else { - bat 'yarn install --frozen-lockfile --production=false' + bat 'pnpm install --frozen-lockfile --production=false' } } } @@ -66,8 +66,8 @@ def buildOnLabel(label, buildCommand) { try { parallel( - 'Windows Build': buildOnLabel('windows', 'yarn build:electron'), - 'MacOS Build': buildOnLabel('macos', 'yarn build:electron'), + 'Windows Build': buildOnLabel('windows', 'pnpm build:electron'), + 'MacOS Build': buildOnLabel('macos', 'pnpm build:electron'), 'Ubuntu Deploy': { deploy() } )