jenkins-scripts/publish/Jenkinsfile

14 lines
363 B
Plaintext
Raw Normal View History

2020-03-02 22:35:26 +03:00
stage ('publish') {
2020-03-02 22:47:41 +03:00
echo 'checking tag'
script {
def tag = sh(returnStdout: true, script: "git tag --contains").trim()
if (tag) {
echo 'found tag ' + tag
2020-04-04 11:10:31 +03:00
sh "echo '${JEN_FILES_TMP_NAME}' >> .npmignore"
2020-03-02 22:47:41 +03:00
sh 'npm publish --access public'
} else {
echo 'tag not found'
2020-03-02 22:35:26 +03:00
}
}
}