Skip to content

chore(release): stage releases on npm for 2FA approval - #64

Merged
afterimaginary merged 2 commits into
mainfrom
chore/staged-release
Oct 26, 2026
Merged

afterimaginary merged 2 commits into
mainfrom
chore/staged-release

Conversation

@afterimaginary

Copy link
Copy Markdown
Owner

Part of #19.

Summary

The release workflow now stages each version on npm instead of publishing it, and a maintainer approves it with 2FA. The trusted publisher on npm is set to allow staging only, as npm recommends, so the old pnpm publish step would have been refused.

Changes

  • release.yml runs vp pm stage publish --provenance -- --no-git-checks. To approve, you take the stage id from the job's log and run vp pm stage approve <stage-id>.
  • ADR-0007 gives the reason. The checker runs from agent hooks on users' machines, so a bad version would do harm quickly. Agents on the maintainer's machine can create GitHub releases, and so could a leaked GitHub token. Staging means neither can put a version live without 2FA.
  • CONTRIBUTING, ARCHITECTURE and STATE describe the staged flow. The one-time first-publish steps are gone from CONTRIBUTING, because the package now exists on npm.
  • The README status line and install.md no longer say the package isn't published. This has to happen before the first release, because the README ships in the package.

Verification

  • vp pm stage publish --dry-run -- --no-git-checks builds the package and reports that it would stage it.
  • vp check passes, and the pre-push vp run ready passes with all 107 tests.
  • Not verified: staging with provenance from CI. The first release will show whether it works.

afterimaginary and others added 2 commits October 26, 2026 12:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afterimaginary
afterimaginary marked this pull request as ready for review October 26, 2026 19:14
@afterimaginary
afterimaginary merged commit 671ed91 into main Oct 26, 2026
1 check passed
@afterimaginary
afterimaginary deleted the chore/staged-release branch October 26, 2026 19:14
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