1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-26 00:21:36 +01:00

Merge branch 'shell-quotes' into 'dev'

Added quotes to shell variables

See merge request turris/reforis/foris-js!23
This commit is contained in:
Maciej Lenartowicz 2019-10-15 08:50:53 +00:00
commit a88fbf63e9

View File

@ -6,12 +6,12 @@ then
exit 1 exit 1
else else
# Need to replace "_" with "_" as GitLab CI won't accept secret vars with "-" # Need to replace "_" with "_" as GitLab CI won't accept secret vars with "-"
echo "//registry.npmjs.org/:_authToken=$(echo $NPM_TOKEN | tr _ -)" > .npmrc echo "//registry.npmjs.org/:_authToken=$(echo "$NPM_TOKEN" | tr _ -)" > .npmrc
echo "unsafe-perm = true" >> ~/.npmrc echo "unsafe-perm = true" >> ~/.npmrc
if test "$1" = "beta" if test "$1" = "beta"
then then
BETA_VERSION=$(npx -c 'echo "$npm_package_version"')-beta.$CI_COMMIT_SHORT_SHA BETA_VERSION=$(npx -c 'echo "$npm_package_version"')-beta.$CI_COMMIT_SHORT_SHA
npm version $BETA_VERSION --git-tag-version false npm version "$BETA_VERSION" --git-tag-version false
npm publish --tag beta npm publish --tag beta
elif test "$1" = "latest" elif test "$1" = "latest"
then then