chore: add ability to create releases of other branches in addition to the develop branch (#302)

This commit is contained in:
fede erbes
2024-05-30 15:06:20 +02:00
committed by GitHub
parent c6da7450ac
commit 4f82430fb2
2 changed files with 6 additions and 2 deletions

View File

@@ -14,10 +14,13 @@ if [[ -z "$BUMP" ]]; then
exit 1
fi
echo -e "\n--- Prepare for $BUMP release branch ---"
# Check for an optional SOURCE_BRANCH variable, default to 'develop' if not provided
SOURCE_BRANCH="${SOURCE_BRANCH:-develop}"
echo -e "\n--- Prepare for $BUMP release branch from $SOURCE_BRANCH ---"
git fetch --all
git checkout develop
git checkout $SOURCE_BRANCH
git pull
npm version $BUMP --git-tag-version=false