updated Jenkinsfile
nclazz/api-cli/pipeline/head There was a failure building this commit Details

master
Niclas Thobaben 2021-07-07 16:02:58 +02:00
parent b2a0049b9b
commit 5c6c772def
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -17,15 +17,15 @@ pipeline {
}
}
stage('Set Version') {
when { branch 'master' }
steps {
when { branch 'master' }
sh 'npm version patch'
sh 'git push'
}
}
stage('Deploy') {
when { tag 'v*' }
steps {
when { tag 'v*' }
sh 'npx npm-cli-login -u $NPM_CREDENTIALS_USR -p $NPM_CREDENTIALS_PSW -e $NPM_MAIL -r $NPM_REGISTRY'
sh 'npm publish'
sh 'npm logout --registry=$NPM_REGISTRY'