build(composer): update version 2.0.0-next to be 2.0.0-dev in composer.json

This commit is contained in:
Yassine Doghri 2024-07-04 13:15:00 +00:00
parent 0eeedb9dc6
commit 5339669ea6
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "adaures/castopod",
"version": "2.0.0-next1",
"version": "2.0.0-dev",
"type": "project",
"description": "Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience.",
"homepage": "https://castopod.org",

View File

@ -3,6 +3,7 @@ set -e
VERSION=$1
COMPOSER_VERSION=$(echo "$VERSION" | sed -r 's/(alpha|beta|next)./\1/g')
COMPOSER_VERSION=$(echo "$COMPOSER_VERSION" | sed -r 's/next[0-9]+/dev/g')
# replace composer.json version using jq
echo "$( jq '.version = "'$COMPOSER_VERSION'"' composer.json )" > composer.json