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/
merge-requests/187/head
Aleksandr Gumroian 2 years ago
parent e2f3e6857e
commit 671c711a33
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733
  1. 3
      scripts/publish.sh

@ -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

Loading…
Cancel
Save