From 671c711a33f13c25c6339e07cc7e59504aad474d Mon Sep 17 00:00:00 2001 From: Aleksandr Gumroian Date: Mon, 28 Feb 2022 16:42:30 +0100 Subject: [PATCH] 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/ --- scripts/publish.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 172b7a7..4b02132 100755 --- a/scripts/publish.sh +++ b/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