Add dep version checks for release

pull/21833/head
J. Ryan Stinnett 2020-02-14 11:07:05 +00:00
parent ab91e859d9
commit 3f2dcf2113
1 changed files with 17 additions and 0 deletions

View File

@ -9,4 +9,21 @@ set -e
cd `dirname $0` 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 "$@" exec ./node_modules/matrix-js-sdk/release.sh -z "$@"