Push Jenkinsfile for build test

This commit is contained in:
YuCheng Hu
2026-06-09 14:03:51 -04:00
parent f0470ba4ed
commit 976d2797a0
Vendored
+18 -9
View File
@@ -37,11 +37,9 @@ pipeline {
steps {
script {
// 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 'corepack enable'
sh 'corepack prepare pnpm@latest --activate'
sh 'git config --global url."https://github.com/".insteadOf git://github.com/'
sh 'corepack enable'
sh 'corepack prepare pnpm@latest --activate'
}
// git branch: 'main',
// credentialsId: 'c9d0ec7c-0749-4588-8960-e96cab84d462',
@@ -49,12 +47,23 @@ pipeline {
}
}
stage("Install") {
steps {
sh '''
pnpm clean --lockfile
pnpm install --no-frozen-lockfile || true
pnpm approve-builds --all
pnpm install --no-frozen-lockfile
'''
}
}
stage('Build / Package') {
steps {
sh 'pnpm approve-builds --all'
sh 'pnpm install --frozen-lockfile'
sh 'npx browserslist@latest --update-db'
sh 'pnpm run docs:build'
sh '''
npx browserslist@latest --update-db
npm run docs:build
'''
}
}