Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.11 KB

npmpub(lish)

Another better npm publish

Works great with github-release-from-changelog.

Why

  • Pulls in remote git commits to ensure you publish the latest commit
  • Reinstalls dependencies to ensure your project works with the latest dependency tree
  • Runs the tests
  • Bumps the version from the one in package.json and creates a git tag
  • Publishes the new version to npm
  • Pushes commits and tags to GitHub

What is the difference with np?

This npmpublish takes the version from the package.json. I was using the orignal np recipe, but I discovered that I was already always updating the version in the CHANGELOG.md by hand, so why not directly specifying the version everywhere in the same commit?

Install

$ npm install --global npmpub

Note that the package is npmpub and the command is npmpublish.

Usage

$ npmpublish

CONTRIBUTING

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.