1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-13 17:25:34 +01:00

Fix access token in publish script

As npm has a new access token format
https://github.blog/changelog/2021-09-23-npm-has-a-new-access-token-format/
This commit is contained in:
Aleksandr Gumroian 2022-02-28 16:42:30 +01:00
parent e2f3e6857e
commit 671c711a33
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -6,8 +6,7 @@ then
exit 1
else
cd dist
# 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")" > .npmrc
echo "unsafe-perm = true" >> ~/.npmrc
if test "$1" = "beta"
then