0.1.3 • Published 8 years ago

ez-release v0.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

ez-release

Release npm packages easily.

ez-release is a command that combines common tasks about package publishments.

  1. Generate changelog via git changelog command from git-extras.
  2. Update the version field in package.json.
  3. Commit these two files.
  4. Tag current version.
  5. Push commit and tag onto remote.
  6. 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
0.1.3

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago