-
Notifications
You must be signed in to change notification settings - Fork 5
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
prefer local over global npmrc file #39
Conversation
.npmrc
Outdated
@@ -1,2 +1,3 @@ | |||
registry=http://registry.npmjs.org/ | |||
save-exact=true | |||
//npm.example.com/:_authToken=${NPM_TOKEN} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you remove this line - break CI
Love it! Could you remove the token in the |
Done 👍 |
Looks like something else is breaking now? |
yeah, seems one of the tests it putting NPM_TOKEN into the Thank you for the code, will try to publish tonight |
@bahmutov I recently came across this pull request, because the functionality described by @svnlto is exactly what I'm looking for to help with isolating unit tests for I'd just like to ask, when you have a few minutes, if you wouldn't mind publishing this pull request to the npm registry so I can use it in my project. |
Version Tip: safely upgrade dependency npm-utils in your project using next-update |
@hbetts I have pushed this feature (BTW I implemented https://github.com/bahmutov/github-post-release based on your https://github.com/gitter-badger/semantic-release-github-notifier) and was released. |
This PR changes the default behaviour of this library so it'll look for a local
npmrc
file first before defaulting to global.I found this to be very useful in build scenarios that are not able to provide encapsulated environments.