Repository navigation
Release 0.2.0 - #207
Merged
Merged
Release 0.2.0#207
Conversation
ninjudd
added a commit
that referenced
this pull request
Oct 11, 2026
…er than starting none For a pull request that a workflow's token opened, GitHub creates the pull_request run as action_required; #207's run 38167745651 ran only once approved. The dispatch still runs CI unattended, so the docs now tell the reviewer to leave the held run unapproved, since approving it runs every job twice, and plan §9.1 records why the dispatch beat approving by hand.
ninjudd
added a commit
that referenced
this pull request
Oct 11, 2026
The Release workflow opened #207, its first release pull request, and its CI did not run until Justin approved it. For a pull request that a workflow's own token opened, GitHub creates the `pull_request` run but holds it as `action_required`, so a release would wait on a click every time. `workflow_dispatch` runs need no approval. The propose job now runs `gh workflow run ci.yml --ref release/vX.Y.Z` right after it opens the pull request, or after it finds one already open on a re-run, and `ci.yml` gains `workflow_dispatch` as a trigger. A dispatched run's checks land on the branch's commit, which is the pull request's head, so they show on the release pull request like any other CI. The held `pull_request` run still appears, and the docs tell the reviewer to leave it unapproved, because approving it runs every job a second time. The propose job gets `actions: write` for the dispatch, and the default token permission stays read-only. Two alternatives lost. Approving the held run by hand needs no workflow change, but it is a click on every release. A GitHub App token would avoid the hold, but it needs an App and two secrets to do what one extra trigger does. `docs/release.md` now explains why CI is dispatched. It also names the three levels that must allow GitHub Actions to open pull requests: the enterprise (`amnesiac`, under Policies > Actions), the organization, and the repository. The first release run found out the hard way that the repository's checkbox stays greyed out until the enterprise allows it. The release pull request's own Testing text now describes `released --since`, which #205 introduced, and mentions the dispatched CI. Plan §9.1 records both of these points. ## Testing From the repository root of a checkout of `release-ci`: 1. `node -e "const y=require('yaml');for (const f of ['.github/workflows/ci.yml','.github/workflows/release.yml']) { const w=y.parse(require('fs').readFileSync(f,'utf8')); console.log(f, Object.keys(w.on), JSON.stringify(w.jobs.propose?.permissions ?? '')) }"` should print `[ 'push', 'pull_request', 'workflow_dispatch' ]` for `ci.yml`. For `release.yml` it should print `[ 'workflow_dispatch', 'push' ]` and `{"actions":"write","contents":"write","pull-requests":"write"}`. Every `run` step in both files passes `bash -n`. 2. `pnpm exec vitest run src/release.test.ts` should report 19 passed (the script is unchanged), and `project check` should print `Project plans are valid.` The dispatch can't be exercised before this merges, because GitHub dispatches a workflow only once its `workflow_dispatch` trigger is on the default branch. After the merge, run Actions > Release with `minor` again while #207 is still open. The propose job will bump 0.1.0 on the new `main`, force-push `release/v0.2.0`, report `a pull request from release/v0.2.0 is already open`, and dispatch CI. #207 should then list the `linux` and `windows` checks on its new head. If the dispatch step fails with `Workflow does not have 'workflow_dispatch' trigger`, `main` doesn't have this change yet. <!-- projector-summary v=1 sha=6c2f933eae83cdd5c866f0fd2446c26aa9a8e154 --> 📽️ **Projector summary** of 6c2f933: https://field.amnes.ac/reviews/208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises Field's version to 0.2.0 in
package.json. Merging this pull request publishes the release: the Release workflow then tagsv0.2.0on the merge commit, moves the major tag to it, and creates the GitHub release with generated notes.Testing
The Release workflow ran
node scripts/release.ts bump minorfrom the repository root, which printed0.2.0and wrote it topackage.json. After the merge, the publish job runsnode scripts/release.ts released, which exits 3 for an untagged version, and thennode scripts/release.ts tag. A failure there names the step that failed, and a failed GitHub release prints thegh release createcommand that finishes it.