Skip to content

Instantly share code, notes, and snippets.

@indexzero
Created December 27, 2012 20:13
Show Gist options
  • Select an option

  • Save indexzero/4391560 to your computer and use it in GitHub Desktop.

Select an option

Save indexzero/4391560 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment