1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-14 13:36:33 +02:00

Changed beta versioning procedure

This commit is contained in:
Maciej Lenartowicz
2019-10-11 10:15:53 +02:00
parent 1e3e9433ec
commit b320e6a860
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ else
echo "unsafe-perm = true" >> ~/.npmrc
if test "$1" = "beta"
then
npm version prerelease --preid=$CI_COMMIT_SHORT_SHA --git-tag-version false
BETA_VERSION=$(npx -c 'echo "$npm_package_version"')-beta.$CI_COMMIT_SHORT_SHA
npm version $BETA_VERSION --git-tag-version false
npm publish --tag beta
elif test "$1" = "latest"
then