mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-24 00:01:36 +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:
parent
e2f3e6857e
commit
671c711a33
|
@ -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…
Reference in New Issue
Block a user