Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7600182

Browse files
committed
uncomment first part of release.sh
1 parent 42dbe14 commit 7600182

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

release.sh

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,30 @@ cd `dirname $0`
1212
# This link seems to get eaten by the release process, so ensure it exists.
1313
yarn link matrix-js-sdk
1414

15-
# for i in matrix-js-sdk
16-
# do
17-
# echo "Checking version of $i..."
18-
# depver=`cat package.json | jq -r .dependencies[\"$i\"]`
19-
# latestver=`yarn info -s $i dist-tags.next`
20-
# if [ "$depver" != "$latestver" ]
21-
# then
22-
# echo "The latest version of $i is $latestver but package.json depends on $depver."
23-
# echo -n "Type 'u' to auto-upgrade, 'c' to continue anyway, or 'a' to abort:"
24-
# read resp
25-
# if [ "$resp" != "u" ] && [ "$resp" != "c" ]
26-
# then
27-
# echo "Aborting."
28-
# exit 1
29-
# fi
30-
# if [ "$resp" == "u" ]
31-
# then
32-
# echo "Upgrading $i to $latestver..."
33-
# yarn add -E $i@$latestver
34-
# git add -u
35-
# git commit -m "Upgrade $i to $latestver"
36-
# fi
37-
# fi
38-
# done
15+
for i in matrix-js-sdk
16+
do
17+
echo "Checking version of $i..."
18+
depver=`cat package.json | jq -r .dependencies[\"$i\"]`
19+
latestver=`yarn info -s $i dist-tags.next`
20+
if [ "$depver" != "$latestver" ]
21+
then
22+
echo "The latest version of $i is $latestver but package.json depends on $depver."
23+
echo -n "Type 'u' to auto-upgrade, 'c' to continue anyway, or 'a' to abort:"
24+
read resp
25+
if [ "$resp" != "u" ] && [ "$resp" != "c" ]
26+
then
27+
echo "Aborting."
28+
exit 1
29+
fi
30+
if [ "$resp" == "u" ]
31+
then
32+
echo "Upgrading $i to $latestver..."
33+
yarn add -E $i@$latestver
34+
git add -u
35+
git commit -m "Upgrade $i to $latestver"
36+
fi
37+
fi
38+
done
3939

4040
./node_modules/matrix-js-sdk/release.sh -z "$@"
4141

0 commit comments

Comments
 (0)