Skip to content

Commit

Permalink
Add conditional beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekku2 committed Aug 5, 2021
1 parent 2f249d4 commit 4324d81
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ podTemplate(label: pod.label,
"""
}
stage('Publish') {
publishTagToNpm("./", "--tag beta")
if ("${env.TAG_NAME}".contains("-"))
{
publishTagToNpm("./", "--tag beta")
}
else {
publishTagToNpm()
}

}
}
}
Expand Down

0 comments on commit 4324d81

Please sign in to comment.