Skip to content

ci(release): publish to npm directly instead of staging for approval - #42

Merged
vite-hub[bot] merged 1 commit into
mainfrom
ci/publish-directly
Oct 20, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
ci/publish-directly

Conversation

@onmax

@onmax onmax commented Oct 20, 2026

Copy link
Copy Markdown
Owner

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 publish job drops danielroe/uppt/publish, which always stages stable releases, and runs npm publish on the tarballs uppt/pack built, through OIDC trusted publishing. It keeps what uppt did:

  • the same tarballs, in the order pack lists them, with --provenance and --ignore-scripts
  • the same dist-tags: latest for stable versions, the prerelease name otherwise (1.0.0-beta.0 → beta), next for a bare number. The npm-tag input still overrides it.
  • a rerun skips any version already on npm, so it's safe after a partial publish

The npm environment still only deploys from v* and release-* tags.

Merge only after the trusted publisher allows direct publishing. It used to allow npm stage publish only. It's being recreated with npm trust github ... --allow-publish --allow-stage-publish for comark-annotate, comark-carousel, and comark-zoom. comark-github-callouts isn't on npm yet, so it needs a trusted publisher with npm publish allowed before its first release. If a release runs before that, the publish job fails with E403; rerun it with gh workflow run release.yaml --ref vX.Y.Z once the config is fixed.

Checked with actionlint (with shellcheck) and a local run of the dist-tag logic.

🤖 Generated with Claude Code

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.
@vite-hub

vite-hub Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-annotate@42

comark-carousel

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-carousel@42

comark-embed

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-embed@42

comark-github-callouts

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-github-callouts@42

comark-include

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-include@42

comark-lint

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-lint@42

comark-zoom

pnpm add https://pkg.pr.new/onmax/comark-plugins/comark-zoom@42

commit: 83f7401

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Direct npm publishing — Replaces uppt staged publishing with a pinned Node/npm workflow that downloads the packaged tarballs and publishes them through OIDC.
  • Publish parity — Preserves uppt/pack file ordering, exact-version rerun skipping, provenance and ignored scripts, public access, and the documented stable, prerelease, and npm-tag dist-tag behavior.
  • Release documentation — Updates the repository release guidance to describe direct trusted publishing and the required npm configuration.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot merged commit 280165c into main Oct 20, 2026
9 checks passed
This was referenced Oct 20, 2026
@onmax
onmax deleted the ci/publish-directly branch November 1, 2026 11:04
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