Skip to content

Commit

Permalink
Add command to update versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rpungello committed Mar 26, 2024
1 parent 9e1c358 commit 94a91c7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

echo "Enter version number: "

read VERSION
jq ".version=\"$VERSION\"" --indent 4 composer.json >composer.json.new
mv composer.json.new composer.json

git add composer.json
git commit -qm "Bump version to $VERSION"
git tag -a -m "Tagging version $VERSION" "$VERSION"

0 comments on commit 94a91c7

Please sign in to comment.