This commit is contained in:
2020-03-02 22:47:41 +03:00
parent b72fecbbec
commit 7d73129731
11 changed files with 76 additions and 61 deletions

18
publish/Jenkinsfile vendored
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'
}
}
}