15 lines
345 B
Groovy
15 lines
345 B
Groovy
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'
|
|
}
|
|
}
|
|
}
|
|
}
|