From 9d3b9a9e035099ca54855aac6d139f38b779f5bf Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 21 Oct 2014 00:49:37 -0400 Subject: [PATCH] check for correct versions in package.json and bower.json --- release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/release.sh b/release.sh index 01089e4..909e109 100755 --- a/release.sh +++ b/release.sh @@ -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 -- 2.7.4