OptionsOn np itself
--any-branch
Allow publishing from any branch
--branch
Name of the release branch (default: main | master) <branch>
--no-cleanup
Skips cleanup of node_modules
--yolo
Skips cleanup and testing
--no-publish
Skips publishing
--preview
Show tasks without actually executing them
--tag
Publish under a given dist-tag <tag>
--contents
Subdirectory to publish <directory>
--no-release-draft
Skips opening a GitHub release draft
--release-draft-only
Only opens a GitHub release draft
--test-script
Name of npm run script to run tests before publishing (default: test) <script>
--no-2fa
Don't enable 2FA on new packages (not recommended)
--message
Version bump commit message. `%s` will be replaced with version. (default: '%s' with npm and 'v%s' with yarn) <message>