Because I always forget how this stuff works.
This document uses alpha for snapshot prefixing, but feel free to replace it with beta or any other word that suits your development cycle.
npm version premajor|preminor|prepatch --preid=alpha- increases the major|minor|patch version with a-alpha.0prefixgit push --follow-tagsnpm publish --tag alpha.0
npm version prerelease --preid=alpha- increases the number only in the-alpha.0prefix [1]git push --follow-tagsnpm publish --tag alpha.0<-- replace the0with the number you got fromnpm versionin step 1
Tip: the current version can be printed out with this command: node -p "require('./package.json').version" [2]
npm i <your-package>@14.0.0-alpha.2
npm version major|minor|patch- similarly to how it was done in the first development snapshotgit push --follow-tagsnpm publish- Go to github and create a new release