Datum uses release-please to automate versioning. Nobody — human or agent — hand-writes version numbers, tags, changelogs, or GitHub releases.
-
Every PR is squash-merged with a Conventional Commits title (enforced by the
pr-titlecheck). The title becomes the commit message onmain. -
On every push to
main, theRelease Pleaseworkflow (.github/workflows/release-please.yml) opens or updates a release PR titledchore(main): release X.Y.Z. It accumulates pending changes intoCHANGELOG.mdand bumps theversionfield in the rootpackage.json:fix:→ patch (0.3.0→0.3.1)feat:→ minor (0.3.0→0.4.0)feat!:(or anytype!:) → major (1.2.0→2.0.0). Always signal breaking changes with the!marker in the PR title: the squash commit keeps only the title, so aBREAKING CHANGE:footer in the PR body or branch commits never reachesmain, and release-please would compute a minor bump instead of a major one.docs:,chore:,ci:, etc. → no bump (still listed in the changelog where configured)
While the version is 0.x,
bump-minor-pre-majorinrelease-please-config.jsoncaps breaking changes at a minor bump (0.3.0→0.4.0) instead of jumping to1.0.0— SemVer item 4: major version zero is for initial development and anything may change. Still mark breaking PRs with!so they're flagged in the changelog. Cutting1.0.0is a deliberate act: add"release-as": "1.0.0"to the package entry inrelease-please-config.json, merge the resulting release PR, then remove the override. -
Cutting a release = merging that release PR. On merge, the workflow creates the
vX.Y.Zgit tag and the GitHub Release with the changelog notes. That's the entire release procedure.
The single source of truth for the current version is the root package.json version field, mirrored in .release-please-manifest.json. The cms and pipeline workspace versions are not used and stay untouched.
There is no release schedule — merge the release PR whenever main holds something worth shipping.
Never manually:
- edit
CHANGELOG.md, the rootpackage.jsonversion, or.release-please-manifest.json - create or push
v*git tags - create GitHub releases in the UI
If a release needs correcting, fix it through release-please (e.g. a release-as override in release-please-config.json), not by hand.
Configure these in GitHub settings (they can't be committed as code):
- Pull Requests → allow only squash merging, and set "Default commit message" to Pull request title. This is what makes PR titles the commits release-please reads.
- Actions → General → check "Allow GitHub Actions to create and approve pull requests" (required for the workflow to open release PRs).
- Branch ruleset on
main: require pull requests, require theciandpr-titlestatus checks, block force pushes. - Optional but recommended —
RELEASE_PLEASE_TOKENsecret: PRs opened with the defaultGITHUB_TOKENdon't trigger other workflows, so CI never runs on release PRs and required checks block them. Create a fine-grained PAT (this repo only; Contents + Pull requests: read/write) and add it as an Actions secret namedRELEASE_PLEASE_TOKEN; the workflow picks it up automatically. Without it, you'd need to close/reopen each release PR to kick CI.
After the repo goes public, also enable (Settings → Advanced Security / Security): secret scanning + push protection, Dependabot alerts, and private vulnerability reporting (SECURITY.md points reporters at the advisories page).