Automatically update NPM packages and create Git tags when your commit updates the version number or you include [publish] in the message
Auto NPM is a command line tool, it's very simple to use and once you enable it in a Git repo, you don't have to do anything at all to use it.
auto_npm <command> [options]
enableEnables Auto NPM in the current repo
disableDisables Auto NPM in the current repo
updateUpdates the NPM package in the current repo and creates a Git tag for it
-fForce Auto NPM to rewrite any conflicting Git hooks
-hDisplay the help dialog
- There hasn't been much success using
git commit -abut
but commit -mworks most of the time.
- When a commit includes
[publish]it will increment your patch number, create Git tags and publish to NPM.
- When you manually change your version number, it will create a Git tag and publish it to NPM.
- Sometimes when it asks for your password when publishing it can be a bit iffy on your shell. Not sure why it's weird so it'll be fixed as soon as I found out how to.