updated Jenkinsfile
nclazz/api-cli/pipeline/head There was a failure building this commit
Details
nclazz/api-cli/pipeline/head There was a failure building this commit
Details
parent
b2a0049b9b
commit
5c6c772def
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue