14 lines
363 B
Groovy
14 lines
363 B
Groovy
stage ('publish') {
|
|
echo 'checking tag'
|
|
script {
|
|
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
|
|
if (tag) {
|
|
echo 'found tag ' + tag
|
|
sh "echo '${JEN_FILES_TMP_NAME}' >> .npmignore"
|
|
sh 'npm publish --access public'
|
|
} else {
|
|
echo 'tag not found'
|
|
}
|
|
}
|
|
}
|