Skip to content

ci: release automatically through core's release workflow - #423

Merged
KartikP merged 2 commits into
mainfrom
kp/auto-release
Oct 9, 2026
Merged

KartikP merged 2 commits into
mainfrom
kp/auto-release

Conversation

@KartikP

@KartikP KartikP commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Makes language releases fully automatic, using the shared workflows added in brain-score/core#180.

Depends on brain-score/core#180. Both workflows here call brain-score/core/.github/workflows/*.yml@main, which do not exist until that PR merges. Do not merge this first. The human setup steps (GitHub App, org secrets, pypi environment, ruleset, PyPI trusted publisher) are in the setup guide and are not part of this PR.

Changes

  • release.yml (new): on each push to main, calls core's reusable release workflow with release-paths: ^brainscore_language/(?!(models|benchmarks|data|metrics)/), so plugin-only merges never release. The PR title type picks the level (feat minor, fix/perf patch, major only with ! or BREAKING CHANGE plus the major update label). The PyPI publish job runs in this file, because PyPI trusted publishing does not work inside a reusable workflow. A manual Run workflow with a level input cuts the first release.
  • pr-title.yml (new): calls core's PR-title check; it comments on a bad title with the allowed types.
  • pyproject.toml: adds [tool.semantic_release].

Starting version

PyPI and pyproject.toml are at 2.2.1, and v2.2.1 is the highest tag and is on main, so the first release is 2.2.2 (patch) or 2.3.0 (minor) with no collision. Pick the level for the manual first run from what main has gained since 2.2.1.

Each squash merge that changes a non-plugin file releases at the level its
PR title gives. Depends on brain-score/core#180.
@KartikP
KartikP marked this pull request as ready for review October 9, 2026 10:20
@KartikP
KartikP merged commit a13d29a into main Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant