X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=release.sh;h=909e10930eaf5fe0d64d665bbb4b65cf691dc006;hb=4a401b38137b4c4bd09dff59dafb4665874274f4;hp=c92db4f128949a638cfde3056e72654df75b3c11;hpb=172be781a7654d4109d48f1e1f436a122a936622;p=dygraphs.git diff --git a/release.sh b/release.sh index c92db4f..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 @@ -54,7 +66,12 @@ git tag -a "v$VERSION" -m "Release of version $VERSION" git push --tags echo "Release was successful!" -echo "Don't forget to merge changes on this branch back into master." +echo "Pushing the new version to dygraphs.com..." +./push-to-web.sh dygraphs.com:dygraphs.com + +echo "Success!\n" +echo "Don't forget to merge changes on this branch back into master:" +echo "git merge --no-ff $branch" # Discourage users from working on the "releases" branch. git checkout master