npm version
Bump a package version
Options
Name | Description |
---|---|
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |
--json | Show output in json format |
--allow-same-version | Prevents throwing an error when npm version is used to set the new version to the same value as the current version |
--no-commit-hooks | Do not run git commit hooks when using the npm version command |
--no-git-tag-version | Do not tag the commit when using the npm version command |
--preid <prerelease-id> | The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the rc in 1.2.0-rc.8 |
--sign-git-tag | If set to true, then the npm version command will tag the version using -s to add a signature |