fix(repo): registry is set incorrectly when using --local (#3513)

This commit is contained in:
Webber Wang 2020-08-14 13:32:05 -07:00 committed by GitHub
parent 0644c6bb5b
commit 498e23f9b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ do
echo "Publishing ${PACKAGE_NAME}@${VERSION} --tag ${TAG}"
if [ "$LOCALBUILD" = "--local" ]; then
npm publish --tag $TAG --access public --registry=NPM_REGISTRY
npm publish --tag $TAG --access public --registry=$NPM_REGISTRY
else
npm publish --tag $TAG --access public
fi