developis the integration branch. Open feature and fix PRs againstdevelop.maincontains released code only. It changes only through a release PR fromdevelop.- Every published version is a
vX.Y.Ztag onmain. Tags are never moved or deleted once pushed.
Merge with merge commits, not squash or rebase, when merging develop into main, so both branches share history.
.github/workflows/ci.yml runs on every PR and push to main and develop:
- SwiftLint
swift teston macOSxcodebuild teston iOS and tvOS simulators, and a watchOS build
The CI passed job succeeds only when every other job does. It's the one check to mark as required in branch protection. With no second maintainer to review, a green CI passed is the merge gate.
-
On
develop, open a PR that:- adds a
## [X.Y.Z]section toCHANGELOG.md(replaceunreleasedwith the release date) - updates the version in the README's installation snippet if the major version changed
- adds a
-
Once that PR is merged, open a PR from
developintomaintitledRelease X.Y.Z. Merge it with a merge commit when CI is green. -
Tag the merge commit on
mainand push the tag:git switch main && git pull git tag -a vX.Y.Z -m "RxRealm X.Y.Z" git push origin vX.Y.Z
-
.github/workflows/release.ymlchecks that the tag is onmainand has a CHANGELOG entry. It then runs the tests and creates the GitHub release. The notes are the CHANGELOG section, an install snippet and documentation links, followed by GitHub's generated list of merged pull requests (configured in.github/release.yml). -
Swift Package Manager and the Swift Package Index pick up the new tag on their own.
-
Fast-forward
developtomainso the release merge commit is on both branches:git switch develop && git merge --ff-only main && git push origin develop
RxRealm is no longer published to CocoaPods. Versions already on trunk keep working, but new releases are Swift Package Manager only.