X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=release.sh;h=909e10930eaf5fe0d64d665bbb4b65cf691dc006;hb=5579bfd15720e6605c2f4a71b6727cb271396e01;hp=a94599942a4ff7fa0233020e3e9b733e6cdb4b65;hpb=9023a6d6bddd368690ec999ba919dbf1e48a4002;p=dygraphs.git diff --git a/release.sh b/release.sh index a945999..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 @@ -59,7 +71,7 @@ echo "Pushing the new version to dygraphs.com..." echo "Success!\n" echo "Don't forget to merge changes on this branch back into master:" -echo "git merge $branch" +echo "git merge --no-ff $branch" # Discourage users from working on the "releases" branch. git checkout master