Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Andrey Lushnikov64e5e213d8e9
diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh
index 919a102ad4..73e28618d4 100755
--- a/utils/publish_all_packages.sh
+++ b/utils/publish_all_packages.sh
@@ -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