TiddlyWiki5/bin/verbump.sh

18 lines
344 B
Bash
Raw Normal View History

2013-11-09 10:54:25 +00:00
#!/bin/bash
# Bump to a new version number
if [ -z "$1" ]
then
echo "Missing version (eg '5.0.0-alpha')"
2013-11-09 10:54:25 +00:00
exit 1
fi
# Set the new version number (will also commit and tag the release)
npm version $1 -m "Version number update for $1" || exit 1
2013-11-09 10:54:25 +00:00
# Make sure our tags are pushed to the origin server
git push origin --tags || exit 1