Repository navigation
ci: automate the release steps that need no 2FA, and keep Docker on an LTS Node - #125
Conversation
…n LTS Node - Prepare a release (workflow_dispatch, owner only): runs release:prepare in a job with no secret, then opens the release PR as opendrs-bot from a job that installs nothing and accepts only release:prepare's files. - Tag a release (push to main changing package.json): tags the merge commit and drafts the GitHub release from the changelog section. - Finish a release: also moves the major tag (opt-out input, never for a prerelease) and opens one PR that pins the plugin and the dogfood step. - The dogfood pin moves to .github/actions/opendrs-release, a composite action, because a workflow token may not edit .github/workflows/. - Dockerfile back on node:24-slim (Node 25 is end-of-life), Dependabot skips Node majors for it, CI also runs Node 26 (not a required check). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
🟡 Diff risk 0.59 · yellow · human review16 files · +568 −78 · Captain: careful review · why: Adds 2 exported declarations to
Review brief for AI reviewers (opendrs)Score details
Policy
Suggested reviewers: opendrs 0.7.1 · default model · github.com/error-path/opendrs Auto-approval: not approved: decision is human-review; self-modification guard: the PR changes .github/actions/opendrs-release/action.yml, .github/dependabot.yml, .github/workflows/ci.yml, .github/workflows/opendrs.yml, .github/workflows/release-finish.yml, and 2 more. |
… job pick the commit - opendrs.yml restores .github/actions/opendrs-release from the PR's base commit before using it: editing that file needs only contents write, not the workflows permission, so the PR's copy must not run with the bot token. - Prepare a release runs only on main and checks out github.sha in both jobs, instead of a commit named in the build job's artifact. - Bot commits use the app's noreply address with its user id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why
PR #124 was a one-line pin bump that had to be opened by hand. Most of the release can run in Actions; only the steps that need judgement or 2FA stay manual.
What runs in Actions now
npm run release:preparelocally, push, open PRvX.Y.Zmainv0Still manual, on purpose: merging the release and pins PRs (the self-modification guard never auto-approves them), ticking Marketplace and publishing the draft (web form only, 2FA), approving the staged npm version (2FA), and dispatching Finish.
Safety
.github/actions/opendrs-release/action.yml. A workflow's token may not edit.github/workflows/, and the bot does not get theworkflowspermission. A PR could edit the composite, as it could editopendrs.yml; both sit under.github/**, which the guard never auto-approves.npm ciand the build run in a job with no secret and a read-only token. The bot token is minted in a second job that installs nothing and refuses any patch file outsiderelease:prepare's list.contentsandpull-requestswrite, in owner-only dispatch jobs.contents: writeonly, uses no secret, never publishes and never movesv0.Node
Dockerfilegoes back fromnode:25-slim(end-of-life since 1 June 2026; Dependabot's build(deps): Bump node from 22-slim to 25-slim #119 was a plain version update, not a security fix) tonode:24-slim, pinned by digest. Node 24 is LTS until April 2028 and is what CI requires.npm run checkpassed locally on Node 26.13.Checks
npm run checkpasses: 1521 tests and 617 slow tests (1 skipped). New tests coverpinDogfood,releaseNotesand the three release workflows' permissions, secrets, pinning and ordering.Not verified: the new workflows haven't run yet, because they only run during a release. The first real test is the next release. Every step can still be done by hand, as
docs/maintaining.mdsays.🤖 Generated with Claude Code