update
This commit is contained in:
18
publish/Jenkinsfile
vendored
18
publish/Jenkinsfile
vendored
@@ -1,14 +1,12 @@
|
||||
stage ('publish') {
|
||||
steps {
|
||||
echo 'checking tag'
|
||||
script {
|
||||
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
|
||||
if (tag) {
|
||||
echo 'found tag ' + tag
|
||||
sh 'npm publish'
|
||||
} else {
|
||||
echo 'tag not found'
|
||||
}
|
||||
echo 'checking tag'
|
||||
script {
|
||||
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
|
||||
if (tag) {
|
||||
echo 'found tag ' + tag
|
||||
sh 'npm publish --access public'
|
||||
} else {
|
||||
echo 'tag not found'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user