Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Releasing

Generating release notes requires Git 2.13 or newer, so a final release’s comparison can exclude release candidates (ADR 11.4).

./release.sh minor     # or patch, major, 1.2.3: checks main, opens the release pull request
./release.sh tag       # once it's merged: tags, releases, updates the Homebrew tap
./release.sh notes     # what the release pull request would say
./release.sh 1.0.0-rc.1  # a release candidate; then rc for 1.0.0-rc.2, and 1.0.0 to release it

A release’s notes are its section of CHANGELOG.md, in Keep a Changelog 1.1.0 form, which pull requests add to under [Unreleased]. ./release.sh minor names that section for the version on the release branch and moves its compare links, ./release.sh tag won’t tag a version without one, and the release workflow publishes it as the GitHub release’s notes, or fails (ADR 11.4).

A release candidate, X.Y.Z-rc.N, is a GitHub pre-release and is on crates.io (cargo install brnr --version X.Y.Z-rc.N --locked), but the Homebrew formulae stay at the last release. X.Y.Z‘s section of CHANGELOG.md takes in its release candidates’ sections, and its pull request lists the commits since the last release, so its notes say everything since. A version must come after the current one (ADR 11.4).

Dependabot opens a pull request when an adapter’s npm package has a new release; the next brnr release ships it.

1.0.0

At 1.0.0 the ADRs are accepted, and ADR 8.4’s compatibility promise starts (docs/adr/README.md). release.sh doesn’t do either: the release pull request for 1.0.0 (not a release candidate’s) also changes, by hand, dated the day of the release:

  • Each topic’s status line, under its title in docs/adr/0001-*.md to 0012-*.md: Draft … becomes Accepted <date>. A line that says Implemented keeps the word, and what follows it: adr-tests.py reads it.
  • ADR 8’s status line: but 8.4 is a promise that applies from 1.0.0 goes, as 8.4 now applies.
  • ADR 8.4, its first paragraph: Nothing is implemented: the promise starts at 1.0.0. says the promise applies from 1.0.0.
  • The ADRs’ table, row 8, Implemented: partly: 8.4 applies from 1.0.0; goes.
  • The interface reference: Covered and not covered and Compatibility start Before 1.0.0 every interface here can change outright, which no longer applies.

After 1.0.0 an accepted record changes only by a new section that amends or supersedes it (docs/adr/README.md).