indexzero
12/27/2012 - 8:13 PM

My lazy version bump script

My lazy version bump script

VERSION=$1

if [ -z $VERSION ]; then
  echo "usage: vbump VERSION"
  echo "No version found."
  exit 1
fi

echo "git add ."
git add .

echo "git commit -m '[dist] Version bump. $1'"""
git commit -m "[dist] Version bump. $1"

echo "git tag -a 'v$1' -m 'Version $1'"
git tag -a "v$1" -m "Version $1"

echo "git push origin master"
git push origin master

echo "git push --tags"
git push --tags

echo "npm publish"
npm publish