npm publish and tag releases #194
-
|
Hey 👋, To automate the deployment of my npm packages, I use GitHub Actions that triggers everytime we create a release/tag on GitHub, this action use But currenly we are only releasing with latest tag, how does it it work if we want to release on a beta tag for example ? I thought you only needed to change the version number in In my opinion, it should be the case, I ran I don't know what means Thanks for your answer and your help! 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Versions numbers have no direct connection with dist-tags, so you can have a As a quick tip, avoid using |
Beta Was this translation helpful? Give feedback.
-
|
At this time we still require the use of the |
Beta Was this translation helpful? Give feedback.

At this time we still require the use of the
--tagargument to set the specific dist-tag and don't assume anything based on the semver. To be honest I think it might be too fragile to do anything else. It might be worth kicking off an issue over at https://github.com/npm/rfcs if you want to propose a larger change to how this works with publish.