mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-12 07:06:40 +02: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
|
exit 1
|
||||||
else
|
else
|
||||||
cd dist
|
cd dist
|
||||||
# Need to replace "_" with "-" as GitLab CI won't accept secret vars with "-"
|
echo "//registry.npmjs.org/:_authToken=$(echo "$NPM_TOKEN")" > .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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user