rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

feat(no-tag-publish): add proposal for a no-tag publish

Open wraithgar opened this issue 4 years ago • 4 comments

This is a suggestion that grew out of a discussion surrounding https://github.com/npm/rfcs/pull/317.

It will afford a way for end-users to publish new versions of packages without having to set a dist-tag for the version being published.

The name of the parameter is still tbd in the Bikeshedding section.

npm publish --skip-tag

References

Related to https://github.com/npm/rfcs/pull/319 Related to https://github.com/npm/rfcs/pull/317

wraithgar avatar Feb 11 '21 22:02 wraithgar

--no-tag still seems like the best option; i doubt anyone's relying on that producing a false dist-tag (are there any packages with one in the registry?)

ljharb avatar Feb 12 '21 00:02 ljharb

--no-tag still seems like the best option; i doubt anyone's relying on that producing a false dist-tag (are there any packages with one in the registry?)

We can't audit private packages for this anyways.

wraithgar avatar Feb 12 '21 00:02 wraithgar

Surely private packages on the public registry can be audited for this?

ljharb avatar Feb 12 '21 01:02 ljharb

Even if they are, I would consider that behavior a bug not a feature. If they want to have a string value of false they should be using --tag="false" IMO.

wesleytodd avatar Feb 17 '21 18:02 wesleytodd

@wraithgar this is still a very valuable feature, can this be reopened?

ljharb avatar Apr 14 '23 16:04 ljharb

The npm registry itself doesn't support it.

wraithgar avatar Apr 14 '23 16:04 wraithgar

Also this is in line with our new rfc approach that it's something someone owns and is actively going to implement.

wraithgar avatar Apr 14 '23 16:04 wraithgar

and there's no opportunity to get it onto the registry's roadmap?

ljharb avatar Apr 14 '23 16:04 ljharb