Skip to content

Commit 4f383a9

Browse files
committed
Pin npm registry explicitly in publish-version
yarn version's postversion hook was inheriting yarn's default npm_config_registry (registry.yarnpkg.com) into the npm publish subprocess, causing ENEEDAUTH against the wrong registry.
1 parent 66e71af commit 4f383a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/publish-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fi
5959

6060
for pkg in ./modules/*; do
6161
if [[ -d $pkg ]]; then
62-
npm publish --access public --tag next --provenance $pkg
62+
npm publish --access public --tag next --provenance --registry https://registry.npmjs.org/ $pkg
6363
fi
6464
done
6565

0 commit comments

Comments
 (0)