From 98850e1e5d675fcf13721fbee15e0cfd6a538b2c Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 20 May 2023 00:35:11 +0800 Subject: [PATCH] chore(build): tag on `production` branch instead of `master` (#1052) --- tools/release | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/release b/tools/release index 48bff39..6bd0c82 100755 --- a/tools/release +++ b/tools/release @@ -164,15 +164,14 @@ build_gem() { release() { _version="$1" # X.Y.Z + git checkout "$PROD_BRANCH" + git merge --no-ff --no-edit "$working_branch" + # Create a new tag on working branch echo -e "Create tag v$_version\n" git tag "v$_version" - git checkout "$PROD_BRANCH" - git merge --no-ff --no-edit "$working_branch" - - # merge from patch branch to the staging branch - # NOTE: This may break due to merge conflicts, so it may need to be resolved manually. + # Merge from patch branch to the staging branch if [[ $working_branch == hotfix/* ]]; then git checkout "$STAGING_BRANCH" git merge --no-ff --no-edit "$working_branch"