We recommend using semantic-release instead
This package will do the following:
- Check for uncommitted changes.
- Run tests.
- Update the version number.
- Commit the version number.
- Tag the commit.
- Push all commits and tags.
- Publish to npm.
Install:
npm i -g test-tag-publish
Run:
test-tag-publish <version> [options]
<version>
- This is required and can be anything that
npm version
accepts. - [
<newversion>
|major
|minor
|patch
|premajor
|preminor
|prepatch
|prerelease
|from-git
]
- This is required and can be anything that
[options]
- [
-m
|--message
]- The commit message.
%s
can be used to insert the new version number.- Default value is
v%s
.
- [
-t
|--tag
]- The tag message.
%s
can be used to insert the new version number.- If this is not set the message is used.
- [
-f
|--force
]- Skip the check for uncommitted changes.
- [
-n
|--no-test
]- Skip tests.
- [