Running np
lets you choose the release type and tag interactively, but np prerelease
requires to pre-specify the tag via flag, erroring if it doesn't have it:
β― np premajor
β― Prerequisite check
β Ping npm registry
β Verify user is authenticated
β Check git remote
β Validate version
β Check for pre-release version
β You must specify a dist-tag using --tag when publishing a pre-release ve
β¦
Check git tag existence
Git
Cleanup
Installing dependencies using npm
Running tests using npm
Bumping version using npm
Publishing package using npm
Pushing tags
β You must specify a dist-tag using --tag when publishing a pre-release version. This prevents accidentally tagging unstable versions as "latest". https://docs.npmjs.com/cli/dist-tag
$ np premajor
$ np premajor
should be the same as $ np premajor --tag next
or let you choose interactively.
np 4.0.2
node v11.6.0
npm 6.9.0
git 2.19.1
OS: macOS 10.14.3
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too