Skip to content

Instantly share code, notes, and snippets.

@hanford
Created February 24, 2017 21:23
Show Gist options
  • Save hanford/634f005afc5b51872e0f2062a3ee8543 to your computer and use it in GitHub Desktop.
Save hanford/634f005afc5b51872e0f2062a3ee8543 to your computer and use it in GitHub Desktop.
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