Skip to content

Instantly share code, notes, and snippets.

@redgeoff
Last active August 29, 2015 14:07
Show Gist options
  • Save redgeoff/73b78d3b7a6edf21644f to your computer and use it in GitHub Desktop.
Save redgeoff/73b78d3b7a6edf21644f to your computer and use it in GitHub Desktop.
tin-npm
#!/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