Another better
npm publish
Works great with github-release-from-changelog.
- 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
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?
$ npm install --global npmpub
Note that the package is npmpub
and the command is npmpublish
.
$ npmpublish
- ⇄ Pull requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.