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 "$@"