Skip to content
This repository was archived by the owner on Jun 22, 2018. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Release npm packages easily

Resources

Stars

1 star

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages