use npm in Jenkins

This commit is contained in:
weboko 2022-12-23 23:11:39 +01:00
parent 9a8800980b
commit 7e02520111
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

6
ci/Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ pipeline {
stages {
stage('Pre') {
steps {
sh 'pnpm install --silent'
sh 'npm install --silent'
/* TODO: Build the main page. */
sh 'mkdir -p build/docs'
}
@ -69,8 +69,8 @@ pipeline {
def buildExample(example=STAGE_NAME) {
def dest = "${WORKSPACE}/build/docs/${example}"
dir("${example}") {
sh 'pnpm install --silent'
sh 'pnpm run build'
sh 'npm install --silent'
sh 'npm run build'
sh "mkdir -p ${dest}"
sh "cp -r build/. ${dest}"
}