mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-18 00:17:53 +01:00
Fix RC flow
This commit is contained in:
20
.github/RELEASE_WORKFLOW.md
vendored
20
.github/RELEASE_WORKFLOW.md
vendored
@@ -179,6 +179,26 @@ gh pr merge --squash
|
|||||||
- Each merge to `release/1.18` publishes a new RC (`v1.18.0-rc.2`, `rc.3`, etc.)
|
- Each merge to `release/1.18` publishes a new RC (`v1.18.0-rc.2`, `rc.3`, etc.)
|
||||||
- Testers can pull specific RC versions to validate fixes
|
- Testers can pull specific RC versions to validate fixes
|
||||||
|
|
||||||
|
**Recommended: Keep `develop` in sync**
|
||||||
|
|
||||||
|
To avoid `develop` having stale/buggy code until the release completes, create PRs targeting both branches:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout release/1.18
|
||||||
|
git checkout -b fix/critical-bug
|
||||||
|
# ... make fixes ...
|
||||||
|
git commit -m "Fix critical bug in authentication"
|
||||||
|
git push -u origin fix/critical-bug
|
||||||
|
|
||||||
|
# Create PR for release branch
|
||||||
|
gh pr create --base release/1.18 --title "Fix critical bug"
|
||||||
|
|
||||||
|
# Create PR for develop (same branch, different target)
|
||||||
|
gh pr create --base develop --title "Fix critical bug"
|
||||||
|
```
|
||||||
|
|
||||||
|
Both PRs can be reviewed and merged independently. When `master` is merged back to `develop` in Phase 5, Git will recognize the identical changes and resolve cleanly.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Phase 3: Merge to Master
|
### Phase 3: Merge to Master
|
||||||
|
|||||||
4
.github/workflows/release-pipeline.yml
vendored
4
.github/workflows/release-pipeline.yml
vendored
@@ -246,8 +246,8 @@ jobs:
|
|||||||
rc_number=$(git rev-list --count HEAD 2>/dev/null || echo "1")
|
rc_number=$(git rev-list --count HEAD 2>/dev/null || echo "1")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure RC number is at least 1
|
# Convert commit count to RC number (0 commits = rc.1, 1 commit = rc.2, etc.)
|
||||||
rc_number=$((rc_number > 0 ? rc_number : 1))
|
rc_number=$((rc_number + 1))
|
||||||
|
|
||||||
rc_tag="v${full_version}-rc.${rc_number}"
|
rc_tag="v${full_version}-rc.${rc_number}"
|
||||||
short_sha=$(git rev-parse --short HEAD)
|
short_sha=$(git rev-parse --short HEAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user