ez-release
v0.1.3
Published
Release npm packages easily
Downloads
2
Readme
ez-release
Release npm packages easily.
ez-release
is a command that combines common tasks about package publishments.
- Generate changelog via
git changelog
command from git-extras. - Update the
version
field inpackage.json
. - Commit these two files.
- Tag current version.
- Push commit and tag onto remote.
- Publish the package.
Here's the list of commands that will be executed.
$ ez-release patch --dryrun
$ npm version patch --no-git-tag-version
$ git changelog --tag 0.1.2
$ git add package.json
$ git commit -m 0.1.2
$ git tag v0.1.2
$ git push origin
$ git push origin --tags
$ npm publish
Running all the steps listed above manually can be tiresome and error prone.
So ez-release
come to rescue. All you have to do is specify the new version,
whether it's a major, minor, or patch version bump. Then edit the generated
changelog. You are good to go.
Install
$ brew install git-extras # tested with version 3.0.0
$ npm install ez-release -g
Usage
$ ez-release patch -m 'Upgrade to %s for reasons'
$ ez-release patch --dryrun # see what commands will be executed
$ ez-release --help
Usage ez-release [<newversion> | patch | minor | major | prepatch | preminor | premajor | prerelease]
Options:
--message, -m The message for the commit of version and changelog. If the
message contains %s then that will be replaced with the
resulting version number.
--dryrun, -d Test run.
Specify npm
$ NPM=cnpm ez-release