Git "vpub" bash function that automatically increments your project's version number, pushes to git, and publishes to npm. Just paste this function into your .bash_profile. function vpub() { npm version $1; git push origin master; npm publish; } Then you'll be able to do vpub patch/minor/major and it will: Automatically