Check the next tag when looking for the latest version

This commit is contained in:
J. Ryan Stinnett 2020-02-14 11:04:39 +00:00
parent 08c149ed66
commit aa95dcc0cb

View file

@ -21,7 +21,7 @@ cd `dirname $0`
for i in matrix-js-sdk matrix-react-sdk for i in matrix-js-sdk matrix-react-sdk
do do
depver=`cat package.json | jq -r .dependencies[\"$i\"]` depver=`cat package.json | jq -r .dependencies[\"$i\"]`
latestver=`yarn info -s $i version` latestver=`yarn info -s $i dist-tags.next`
if [ "$depver" != "$latestver" ] if [ "$depver" != "$latestver" ]
then then
echo "The latest version of $i is $latestver but package.json depends on $depver" echo "The latest version of $i is $latestver but package.json depends on $depver"