Chevtek.io
  • Home
  • Github
  • Stack

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

  • Alex Ford
    Alex Ford
1 min read
Chevtek.io © 2022
Latest Posts Facebook Twitter Ghost