Add dep version checks for release

This commit is contained in:
J. Ryan Stinnett 2020-02-14 11:07:05 +00:00
parent ab91e859d9
commit 3f2dcf2113

View file

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