Last active
August 29, 2015 14:07
-
-
Save redgeoff/73b78d3b7a6edf21644f to your computer and use it in GitHub Desktop.
tin-npm
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
#!/bin/sh | |
ver=$1 | |
if [ -z "$ver" ] | |
then | |
echo 'usage: tin-npm version' | |
exit | |
fi | |
tin -v $ver | |
npm run build | |
git add -A | |
git commit -m "$ver" | |
git tag v$ver | |
git push origin master --tags | |
npm publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment