check for correct versions in package.json and bower.json
authorDan Vanderkam <danvdk@gmail.com>
Tue, 21 Oct 2014 04:49:37 +0000 (00:49 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Tue, 21 Oct 2014 04:49:37 +0000 (00:49 -0400)
release.sh

index 01089e4..909e109 100755 (executable)
@@ -26,6 +26,18 @@ if [ $? -ne 0 ]; then
   exit 1
 fi
 
+grep "$VERSION" package.json
+if [ $? -ne 0 ]; then
+  echo "Version in package.json doesn't match command line argument." >&2
+  exit 1
+fi
+
+grep "v$VERSION" bower.json
+if [ $? -ne 0 ]; then
+  echo "Version in bower.json doesn't match command line argument." >&2
+  exit 1
+fi
+
 make lint test test-combined
 if [ $? -ne 0 ]; then
   echo "Tests failed. Won't release!" >&2