From: Dan Vanderkam Date: Tue, 21 Oct 2014 04:49:37 +0000 (-0400) Subject: check for correct versions in package.json and bower.json X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=172124e7b9e1eac0d9e0cf8b0c35e0168e7e353c;p=dygraphs.git check for correct versions in package.json and bower.json --- 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