Skip to content

fix(release): run CI on release pull requests and start new repositories at 0.1.0 - #27

Merged
vannt-dev merged 2 commits into
mainfrom
fix/release-pr-ci-and-initial-version
Sep 28, 2026
Merged

vannt-dev merged 2 commits into
mainfrom
fix/release-pr-ci-and-initial-version

Conversation

@vannt-dev

Copy link
Copy Markdown
Owner

Two findings from releasing the pilot repositories on 2026-09-28.

1. Release pull requests never ran CI. release-please opens them with GITHUB_TOKEN, and GitHub starts no workflows for that. In a repository whose ruleset requires checks, the merge stayed blocked until someone closed and reopened the PR (vannt-dev/repokeeper-demo-dotnet#5).

  • release-please.yml gets a new output pr_branch: the head branch of the release PR this run opened or updated, only when no token secret was passed (a real token starts CI by itself). The reusable job's permissions don't change, so existing @v0 callers keep working.
  • The generated release.yml gains a release-pr-ci job (actions: write) that runs gh workflow run ci.yml --ref <branch>. Its check runs land on the release commit under the same names, e.g. commits / commitlint, so they satisfy required checks.
  • The generated ci.yml accepts workflow_dispatch. The job is left out when the ci module is off.

2. First releases jumped to 1.0.0. Repositories seeded at 0.0.0 (demo go, kotlin, php, ruby) released 1.0.0 despite bump-minor-pre-major, because that is release-please's default first version. Their config now sets initial-version: 0.1.0 while the seed is 0.0.0.

The standard moves to 1.4.0; this repository is updated with repokeeper update (ci.yml workflow_dispatch, release.yml release-pr-ci). The README describes both.

Checks: typecheck, biome, 279/279 tests (six new or changed), repokeeper check matches, actionlint clean on the changed workflows.

🤖 Generated with Claude Code

…ies at 0.1.0

Release pull requests opened with GITHUB_TOKEN start no workflows, so a
ruleset with required checks blocked their merge (repokeeper-demo-dotnet#5).
release-please.yml now outputs the branch of such a pull request, and the
generated release.yml gains a release-pr-ci job that dispatches ci.yml on
it; ci.yml accepts workflow_dispatch.

Repositories seeded at 0.0.0 had a first release of 1.0.0 despite
bump-minor-pre-major; their config now sets initial-version 0.1.0.

The standard moves to 1.4.0.
@vannt-dev
vannt-dev merged commit 09eb47e into main Sep 28, 2026
19 checks passed
@vannt-dev
vannt-dev deleted the fix/release-pr-ci-and-initial-version branch September 28, 2026 14:04
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