wisdom

Tool for publishing releases to github and npm

Wisdom

Tool for publishing releases to github and npm.

One command do next things:

  • run command from scripts.wisdom of package.json (if exist);
  • changelog;
  • version in package.json and bower.json (if exist);
  • tag;
  • release on github;
  • push to github;
  • publish to npm;

Here is list of commands that should be executed to get same result:

changelog {{ version }}
version {{ version }}
git add --all
git commit -m "feature(package) v{{ version }}"
git push origin {{ branch }}
git tag v{{ version }}
git push origin v{{ version }}
grizzly -tn "token from url" \
-r grizzly -o {{ owner }} -t {{ version }} \
-n "{{ repo }} {{ version }}" -b "changelog"
npm publish

npm i wisdom -g

You could use one of names you prefer more: wisdom or publish.

$ wisdom
Usage: wisdom [version|major|minor|patch]
Options:
-h, --help     : display this help and exit
-v, --version  : output version information and exit

When you need some tasks was done before publish you could specify in options in package.json command:

{
    "changelog": true, /* default */
    "release": true, /* default */
    "branch": "master" /* default */
    "scripts": {
        "wisdom": "echo 'do something before publish'"
    }
}

MIT