This commit is contained in:
primakov committed 2020-03-03 09:20:32 +03:00
1 parent b72fecbbec
commit 7d73129731
11 files changed
+76 -61

No files matched your search

+8 -10
View File
@@ -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'
}
}
}