-
Notifications
You must be signed in to change notification settings - Fork 240
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
Publish older versions without a tag #26
Conversation
This would be great; i currently use https://npmjs.com/safe-publish-latest to prevent accidentally publishing a backport as “latest”. Even better (on top of this) would be if the tag could be overwritten in prepublish - then i could have a package that removed the “latest” tag when it was unsafe. |
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.
The team had a meeting and we're happy to say we've ratified this! Thanks for the RFC, and I look forward to having this. Since it's a breaking change, we won't be able to have it until npm@7
, but it should be straightforward to implement and wait for the final thing 👍
In the meantime, a better way to mitigate this in long-lived maintenance branches is to immediately set |
@evocateur that’s a great workaround, but it still ends up creating a tag that i have to remove after publishing. |
@ljharb Oh, fair enough. At least it wouldn't be "latest" by default in the scenario I described. Still doesn't avoid a tag altogether, you are correct. |
@zkat couldn’t something like |
I wouldn't recommend treating a string option as a (negatable) Boolean. It's more trouble than it's worth, in my experience.
… On Dec 21, 2018, at 08:43, Jordan Harband ***@***.***> wrote:
@zkat couldn’t something like --no-tag be added as a semver-minor, and the breaking change later be making that the default?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Oh sure, maybe |
No description provided.