use npm in Jenkins
This commit is contained in:
parent
9a8800980b
commit
7e02520111
|
@ -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}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue