Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 2.12 KB

RELEASING.md

File metadata and controls

45 lines (31 loc) · 2.12 KB

Branching and releases

Branches

  • develop is the integration branch. Open feature and fix PRs against develop.
  • main contains released code only. It changes only through a release PR from develop.
  • Every published version is a vX.Y.Z tag on main. 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.

CI

.github/workflows/ci.yml runs on every PR and push to main and develop:

  • SwiftLint
  • swift test on macOS
  • xcodebuild test on 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.

Cutting a release

  1. On develop, open a PR that:

    • adds a ## [X.Y.Z] section to CHANGELOG.md (replace unreleased with the release date)
    • updates the version in the README's installation snippet if the major version changed
  2. Once that PR is merged, open a PR from develop into main titled Release X.Y.Z. Merge it with a merge commit when CI is green.

  3. Tag the merge commit on main and 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
  4. .github/workflows/release.yml checks that the tag is on main and 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).

  5. Swift Package Manager and the Swift Package Index pick up the new tag on their own.

  6. Fast-forward develop to main so the release merge commit is on both branches:

    git switch develop && git merge --ff-only main && git push origin develop

CocoaPods

RxRealm is no longer published to CocoaPods. Versions already on trunk keep working, but new releases are Swift Package Manager only.