updated Jenkinsfile
nclazz/api-cli/pipeline/head This commit looks good
Details
nclazz/api-cli/pipeline/head This commit looks good
Details
parent
8d954ceff6
commit
bd19672be6
|
@ -33,7 +33,12 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when { tag 'v*' }
|
||||
when {
|
||||
allOf {
|
||||
expression { BRANCH_NAME == 'master' }
|
||||
expression { env.TAG_NAME != null }
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'npx npm-cli-login -u $NPM_CREDENTIALS_USR -p $NPM_CREDENTIALS_PSW -e $NPM_MAIL -r $NPM_REGISTRY'
|
||||
sh 'npm publish'
|
||||
|
|
Loading…
Reference in New Issue