diff --git a/Jenkinsfile b/Jenkinsfile index 706d8db..496769a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,14 @@ podTemplate(label: pod.label, """ } stage('Publish') { - publishTagToNpm("./", "--tag beta") + if ("${env.TAG_NAME}".contains("-")) + { + publishTagToNpm("./", "--tag beta") + } + else { + publishTagToNpm() + } + } } }