chore(ci): forcefully login NPM on CI if NPM_AUTH_TOKEN is set

This commit is contained in:
Andrey Lushnikov 2020-03-02 18:38:39 -08:00
parent a40f562662
commit 64e5e213d8

View File

@ -25,7 +25,7 @@ if ! command -v npm >/dev/null; then
exit 1
fi
if [[ (-n $CI) && (-n $NPM_AUTH_TOKEN) && (! -f $HOME/.npmrc) ]]; then
if [[ (-n $CI) && (-n $NPM_AUTH_TOKEN) ]]; then
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > $HOME/.npmrc
fi