Files
website/scripts/publish
T

16 lines
250 B
Bash
Executable File

#!/bin/bash
git checkout production \
&& git rebase master \
&& git push \
&& git checkout master
read VERSION_TYPE -p "Major, minor, patch? "
if [[ "$VERSION_TYPE" == "" ]]; then
exit 1
fi
npm version "$VERSION_TYPE"
npm publish