From 2a7f5773663f5e97e8c4b2094276aa010ed160cc Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 9 Nov 2013 10:54:25 +0000 Subject: [PATCH] Script for bumping the version number --- verbump.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 verbump.sh diff --git a/verbump.sh b/verbump.sh new file mode 100755 index 000000000..01863659c --- /dev/null +++ b/verbump.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Bump to a new version number + +if [ -z "$1" ] + then + echo "Missing version (eg '5.0.0-alpha.99')" + exit 1 +fi + +# Set the new version number (will also commit and tag the release) + +npm version $1 -m "Version update" || exit 1 + +# Make sure our tags are pushed to the origin server + +git push origin --tags || exit 1