mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-04-29 21:26:07 +08:00
chore: add ability to create releases of other branches in addition to the develop branch (#302)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user