mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(ci): forcefully login NPM on CI if NPM_AUTH_TOKEN is set
This commit is contained in:
parent
a40f562662
commit
64e5e213d8
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user