Options:
-t/--test command
- alternate test suite command. default:npm test
<version>
-1.2.3
; or, for auto increments:patch
,minor
,major
- If
<version>
is not specified,npub
will try to deduce it from the Github PRs that were merged, usingsemver-minor
style labels.
- Verify: No uncommitted changes
- Switch to release branch
- Pull with fast forward only from remote in package.json
- Add license headers if necessary
- Verify: No uncommitted changes
- Removes
node_modules
& runsnpm install
usingpublishConfig.registry
if available - Run the test suite
- Prepare changelog from Github API and/or commit log
- Open editor with temp change list
- Update package.json
- Commit changelog & package.json with version number & changelog
- Tag with the version number (vX.Y.Z)
- Ask for confirmation to continue
- Git push the branch and the tag
- Create a Github release
npm publish