Skip to content

Release 0.2.0 - #207

Merged
ninjudd merged 1 commit into
mainfrom
release/v0.2.0
Oct 11, 2026
Merged

ninjudd merged 1 commit into
mainfrom
release/v0.2.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Raises Field's version to 0.2.0 in package.json. Merging this pull request publishes the release: the Release workflow then tags v0.2.0 on 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 minor from the repository root, which printed 0.2.0 and wrote it to package.json. After the merge, the publish job runs node scripts/release.ts released, which exits 3 for an untagged version, and then node scripts/release.ts tag. A failure there names the step that failed, and a failed GitHub release prints the gh release create command that finishes it.

@ninjudd
ninjudd merged commit 5f7cd66 into main Oct 11, 2026
2 checks passed
@ninjudd
ninjudd deleted the release/v0.2.0 branch October 11, 2026 19:25
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
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