ez-release
Release npm packages easily
Last updated 4 years ago by dotnil .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ez-release 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.3                                ...           latest (4 years ago)

4 Versions

  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |