From 3f2dcf2113f017470b568d5deac3d368532eb470 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 14 Feb 2020 11:07:05 +0000 Subject: [PATCH] Add dep version checks for release --- release.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/release.sh b/release.sh index 1f287bc839..4a8acdc5c7 100755 --- a/release.sh +++ b/release.sh @@ -9,4 +9,21 @@ set -e cd `dirname $0` +for i in matrix-js-sdk +do + depver=`cat package.json | jq -r .dependencies[\"$i\"]` + latestver=`yarn info -s $i dist-tags.next` + if [ "$depver" != "$latestver" ] + then + echo "The latest version of $i is $latestver but package.json depends on $depver" + echo -n "Type 'Yes' to continue anyway: " + read resp + if [ "$resp" != "Yes" ] + then + echo "OK, never mind." + exit 1 + fi + fi +done + exec ./node_modules/matrix-js-sdk/release.sh -z "$@"