Created
December 27, 2012 20:13
-
-
Save indexzero/4391560 to your computer and use it in GitHub Desktop.
My lazy version bump script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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