Simple node module release tool


Node module release tool inspired by jarn.mkrelease.

npm install -g npm-mkrelease

Run npm-mkrelease in a Node module directory where the package.json file is.

It does following:

  1. Displays the current npm release and package.json version
  2. Prompts for new version number
  3. Writes it to package.json
  4. Pushes package to npm
  5. Commits new version number to Git
  6. Tags the commit with the version number
  7. Pushes everything to Git origin
Version in package.json: 0.1.3
Current npm release: 0.1.3
New version> 0.2.0
npm http PUT
npm http 409
npm http GET
npm http 200
npm http PUT
npm http 201
npm http PUT
npm http 201
+ npm-mkrelease@0.2.0
[master 2b8ec74] Release 0.2.0
 1 file changed, 2 insertions(+), 2 deletions(-)
 * [new tag]         0.2.0 -> 0.2.0
   4e43cb1..2b8ec74  master -> master

This tool is bit opinionated and does things you might not be able to revert. Do not use it if you are not sure that it does what you want.