Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use NPM_CONFIG_USERCONFIG in get-registry to match auth #362

Merged
merged 1 commit into from
May 4, 2021

Conversation

jameshartig
Copy link
Contributor

Previously NPM_CONFIG_USERCONFIG was only used for getting the auth token and not used for actually getting the registry from .npmrc.

Fixes #349

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending the pull request!

Can you please add a test to make sure we don't break this behavior in future!

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed locally that the test fails without the fix. Thanks for the PR @jameshartig 👍🏼

@gr2m gr2m changed the title fix: use NPM_CONFIG_USERCONFIG in get-registry to match auth fix: use NPM_CONFIG_USERCONFIG in get-registry to match auth May 2, 2021
Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry, one more thing, I think we should document the env variable in https://github.com/semantic-release/npm#environment-variables?

Previously NPM_CONFIG_USERCONFIG was only used for getting the auth token and not used for actually getting the registry from .npmrc.

Fixes semantic-release#349
@jameshartig
Copy link
Contributor Author

@gr2m good call! I updated the README

@gr2m gr2m merged commit 13200ca into semantic-release:master May 4, 2021
@jameshartig jameshartig deleted the userconfig branch May 4, 2021 20:46
@github-actions
Copy link

github-actions bot commented May 4, 2021

🎉 This PR is included in version 7.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get-registry.js doesn't take into account NPM_CONFIG_USERCONFIG
3 participants