node package manager


A better <code>npm publish</code>


A better npm publish

  • Ensures the working directory is clean and that there are no unpulled changes
  • Reinstalls dependencies to ensure your project works with the latest dependency tree
  • Runs the tests
  • Bumps the version in package.json and creates a git tag
  • Publishes the new version to npm
  • Pushes commits and tags to GitHub
$ npm install --global np
np [patch | minor | major | <version>]
# `patch` is default 

MIT © Sindre Sorhus