Open ghost opened 9 years ago
maybe using publish config is required?
I've submitted a pull request to add --tag support ...
but I've also implemented the following in my CI to get what I want:
NPM_CONFIG_TAG=beta npm test
(my package has a "posttest" script that calls publish
)
possibly, it's better just to document that usage instead of writing more code
--tag
support isn't really working ... it checks the tag for the remote version, but when it publishes, it doesn't tag the release with that tag.
... I've got a PR coming
from
npm help publish
:I would like to see this support added to publish so that I can have a CI build publish a "beta" version of my software.
Unfortunately, it looks like the npm publish api may not support this ...