This commit is contained in:
2020-04-04 11:10:31 +03:00
parent c798773d79
commit 50c6d9337c
3 changed files with 53 additions and 0 deletions

1
publish/Jenkinsfile vendored
View File

@@ -4,6 +4,7 @@ stage ('publish') {
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'

16
publish/new/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,16 @@
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"
withNPM(npmrcConfig:'npm-cfg') {
echo "Performing npm build..."
sh 'npm publish --access public'
}
} else {
echo 'tag not found'
}
}
}