Created
February 24, 2017 21:23
-
-
Save hanford/634f005afc5b51872e0f2062a3ee8543 to your computer and use it in GitHub Desktop.
This file contains 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
publish () { | |
git fetch | |
if [[ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]]; then | |
return 1 | |
fi | |
npm version $1 && git push origin --tags | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment