Chevtek.io
  • Home
  • Github
  • Stack
Sign in Subscribe

bash

A collection of 1 post
"vpub" bash function that automatically increments your project's version number, pushes to git, and publishes to npm.
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 increment the version number in package.json. Tag your latest commit with the new version number. Push
Jan 6, 2014 1 min read
Page 1 of 1
Chevtek.io © 2023
Powered by Ghost