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

Respect preId in .npmrc for release tags #547

Merged
merged 4 commits into from
Jul 3, 2020
Merged

Respect preId in .npmrc for release tags #547

merged 4 commits into from
Jul 3, 2020

Conversation

dopecodez
Copy link
Collaborator

@dopecodez dopecodez commented Jul 2, 2020

Fixes #523 . Additionally, has unit tests for the new function introduced to get preId if available.
Tested on MacOS10.13.6.

source/util.js Show resolved Hide resolved
source/util.js Outdated Show resolved Hide resolved
@sindresorhus
Copy link
Owner

Can you give the PR a descriptive title?

@dopecodez dopecodez changed the title Enhancement #523 Enhancement: Use preId if available in .npmrc Jul 3, 2020
@dopecodez dopecodez requested a review from sindresorhus July 3, 2020 15:48
@dopecodez
Copy link
Collaborator Author

I also missed adding a condition to only add the preId if it is a prerelease. That's updated in the code as well now.

@sindresorhus sindresorhus changed the title Enhancement: Use preId if available in .npmrc Respect preId in .npmrc for release tags Jul 3, 2020
@sindresorhus sindresorhus merged commit aebd8ab into sindresorhus:master Jul 3, 2020
@sindresorhus
Copy link
Owner

Looks good 👍🏻

@dopecodez
Copy link
Collaborator Author

I raised another PR #546 too, @sindresorhus . It'd be great if you took a look at that when you got the time.

@dopecodez dopecodez deleted the feature/preId branch July 5, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

preid from .npmrc is not respected when drafting the github release
2 participants