Repository navigation
ci(release): publish to npm directly instead of staging for approval - #42
Conversation
Each staged package needed its own 2FA approval on npmjs.com. The publish job now runs npm publish through OIDC trusted publishing, so merging the release PR is the only approval.
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request c9ecf517-63a3-42cc-9603-bbc0356f4f63. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. Session Waiting for running checks before the next pass. |
comark-annotate
comark-carousel
comark-embed
comark-github-callouts
comark-include
comark-lint
comark-zoom
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Direct npm publishing — Replaces
upptstaged publishing with a pinned Node/npm workflow that downloads the packaged tarballs and publishes them through OIDC. - Publish parity — Preserves
uppt/packfile ordering, exact-version rerun skipping, provenance and ignored scripts, public access, and the documented stable, prerelease, andnpm-tagdist-tag behavior. - Release documentation — Updates the repository release guidance to describe direct trusted publishing and the required npm configuration.
gpt-5.6-sol | 𝕏

Releases now publish to npm directly instead of staging each package for a 2FA approval on npmjs.com. Merging the release PR is the only approval.
The
publishjob dropsdanielroe/uppt/publish, which always stages stable releases, and runsnpm publishon the tarballsuppt/packbuilt, through OIDC trusted publishing. It keeps what uppt did:packlists them, with--provenanceand--ignore-scriptslatestfor stable versions, the prerelease name otherwise (1.0.0-beta.0→beta),nextfor a bare number. Thenpm-taginput still overrides it.The
npmenvironment still only deploys fromv*andrelease-*tags.Merge only after the trusted publisher allows direct publishing. It used to allow
npm stage publishonly. It's being recreated withnpm trust github ... --allow-publish --allow-stage-publishfor comark-annotate, comark-carousel, and comark-zoom. comark-github-callouts isn't on npm yet, so it needs a trusted publisher withnpm publishallowed before its first release. If a release runs before that, the publish job fails with E403; rerun it withgh workflow run release.yaml --ref vX.Y.Zonce the config is fixed.Checked with actionlint (with shellcheck) and a local run of the dist-tag logic.
🤖 Generated with Claude Code