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