Files
devvm/testdata/script
w3cjandClaude Opus 5.5 19ae9a7071 feat(release): the switch: the maintainer signs and pushes the tag, and CI and the co-signer do the rest
scripts/publish.sh's default is now the maintainer's whole part of a
release that CI builds and the co-signer publishes: the tag's checks,
then main and the tag pushed to origin, which starts the Release
workflow, and what comes next. It needs git alone. It refuses a tag
whose commit has no release keys, which CI's workflow would refuse, and
a version with no changelog entry, which the co-signer takes the notes
from.

- scripts/publish.sh --sign-legacy, the one command for the bridge:
  VERSION's draft release, which the co-signer made, has SHA256SUMS,
  SHA256SUMS.ci.minisig and SHA256SUMS.cosign.minisig downloaded, and
  scripts/release.sh --sign-legacy checks both signatures with this
  checkout's packaging/keys and devvm-release <version>, then signs
  SHA256SUMS with the old key, devvm <version>, and checks that with
  packaging/minisign.pub; after asking once, SHA256SUMS.minisig goes on
  the draft, which the co-signer waits for, then publishes. A draft
  that has it already, or a published release, or a draft without the
  co-signer's signature yet, is said so, and nothing is uploaded. A
  checkout without the release keys is refused before anything is
  signed, pointing at github-setup.md's step 1, as is the default
  mode's tag without them.
- scripts/publish.sh --local, the old path, as it was: built, signed
  with the old key alone and published from this machine. It stays
  until the GitHub setup for CI and the co-signer is done, and goes
  when the bridge ends, as a release that only the old key signed is
  then one no devvm accepts. A flag, not the default, because the
  default is what's documented and what's safe to run at any time: it
  publishes nothing itself, so run before the setup it only pushes a
  tag whose workflow run fails; and a --local release after the
  co-signer starts is one it alerts on, as it didn't publish it.
- scripts/release.sh --check-tag: --check's tag and keys checks alone,
  with no container runtime or signing key, which the default mode runs.
- The shared parts are one function each: check_tag (the tag, main
  and origin), notes (the changelog entry), ask (the question), needs_gh.
- release.sh's closing line names publish.sh --local, and --tag's build,
  CI's and the co-signer's, has none.

Tests: testdata/script/publish_tag.txtar (the modes in --help, two
modes refused, no tag, another signer, a dirty tree, no release keys,
no changelog entry, a tag off main's HEAD, --dry-run, n, y and the
pushes in order, again with nothing to push, origin's other tag;
--sign-legacy: gh logged out, no draft, no co-signer signature yet, a
co-signer signature by another key, CI's for another version, --dry-run,
y and the upload, which verifies as devvm 1.2.3, again with nothing to
do, a published release, a checkout without the release keys), failing
before the code; publish.txtar runs the old path as --local, in a repo
without release keys, as devvm is until they're made: SHA256SUMS signed
with the old key alone, no role signatures, install.sh's key lines
empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 21:36:37 -07:00
..