Skip to content

Releasing

Releases are made by semantic-release when develop is merged into main. Nothing is published by hand.

The commits since the last release:

Commits Version
a fix: or perf: patch: 0.1.0 → 0.1.1
a feat: minor: 0.1.0 → 0.2.0
a BREAKING CHANGE: footer major, or minor while the version is 0.x

A breaking change needs the BREAKING CHANGE: footer: the commit analyzer reads it, not the ! after the type. Write both, as commitlint expects the ! too.

trueflac starts at 0.1.0: the API may still change before 1.0. Two settings make it so:

  • the tag v0.0.0 on the first commit, so that the first release counts from zero (semantic-release starts at 1.0.0 otherwise);
  • a release rule in .releaserc.json that makes a breaking change a minor release.

Going to 1.0 is a decision: remove that rule, and the next breaking change, or a commit with a BREAKING CHANGE: footer saying so, releases 1.0.0.

docs:, test:, ci:, build:, chore: and refactor: commits make no release on their own.

.github/workflows/release.yml runs on each push to main:

  1. Wait for CI: the release waits until the checks of the commit have passed.
  2. Create Release: semantic-release computes the version, writes it into pyproject.toml and uv.lock (scripts/bump_version.py), adds the notes to CHANGELOG.md, commits them as chore(release): X.Y.Z, tags vX.Y.Z and publishes the GitHub release.
  3. Publish to PyPI: from the tag, uv build makes the wheel and the source archive, published by trusted publishing: PyPI trusts this workflow in the pypi environment, and no token is stored.
  4. Sync develop: main is merged back into develop.

The documentation workflow then publishes this site from main, so the docs always match the released version.

Edit the GitHub release: a short summary on top, in plain words, then the generated notes.

Built with Kiln