Skip to content

Commit 19edd24

Browse files
committed
update proper composer.json
1 parent 385e85f commit 19edd24

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

wscli-php/bump-version.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@ if [ $# -ne 1 ]; then
99
fi
1010

1111
VF="../wscli-php-sdk/src/VERSION"
12+
CF="../wscli-php-sdk/composer.json"
13+
LF="../wscli-php-sdk/composer.lock"
1214
TAG=$1
1315

1416
#
1517
# Tag & build master branch
1618
#
1719
git checkout master
1820
echo -n $TAG > $VF
19-
cat ../wscli-php-sdk/composer.json | jq '.version ="'$TAG'"' > composer.json2
20-
mv composer.json2 ../wscli-php-sdk/composer.json
21-
git add $VF ../wscli-php-sdk/composer.json
22-
git commit -m 'Bump VERSION' $VF ../wscli-php-sdk/composer.json
21+
cat $CF | jq '.version ="'$TAG'"' > ${CF}"2"
22+
mv ${CF}"2" ${CF}
23+
cd ../wscli-php-sdk/; composer update; cd -
24+
git add $VF $CF $LF
25+
git commit -m 'Bump VERSION' $VF $CF $LF
2326
git push
2427
git tag -a -m "Release v${TAG}" ${TAG}
2528
make release

0 commit comments

Comments
 (0)