Skip to content

Commit 98850e1

Browse files
authored
chore(build): tag on production branch instead of master (#1052)
1 parent a51d31c commit 98850e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/release

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,14 @@ build_gem() {
164164
release() {
165165
_version="$1" # X.Y.Z
166166

167+
git checkout "$PROD_BRANCH"
168+
git merge --no-ff --no-edit "$working_branch"
169+
167170
# Create a new tag on working branch
168171
echo -e "Create tag v$_version\n"
169172
git tag "v$_version"
170173

171-
git checkout "$PROD_BRANCH"
172-
git merge --no-ff --no-edit "$working_branch"
173-
174-
# merge from patch branch to the staging branch
175-
# NOTE: This may break due to merge conflicts, so it may need to be resolved manually.
174+
# Merge from patch branch to the staging branch
176175
if [[ $working_branch == hotfix/* ]]; then
177176
git checkout "$STAGING_BRANCH"
178177
git merge --no-ff --no-edit "$working_branch"

0 commit comments

Comments
 (0)