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-Tag: v1.1.0~43 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=9d3b9a9e035099ca54855aac6d139f38b779f5bf;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