Skip to content

ci(release): publish directly after an approval in GitHub Actions instead of staging on npm - #484

Merged
vite-hub[bot] merged 1 commit into
mainfrom
ci/direct-publish-actions-approval
Nov 24, 2026
Merged

vite-hub[bot] merged 1 commit into
mainfrom
ci/direct-publish-actions-approval

Conversation

@onmax

@onmax onmax commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Staged releases (#435) made every package wait for its own security-key approval on npmjs.com, about 54 per release. v0.14.2 got stuck partway: 9 packages are live, about 33 are staged and waiting, and the rest never staged because comark-motion failed with E401.

This goes back to npm publish through OIDC trusted publishing, as it worked before #435. The approval moves to GitHub. The npm environment now requires onmax as a reviewer (already set in the repository settings), so the publish job waits for one approval in Actions and then publishes every wave.

  • Removes the verify job, .github/npm-trust.ts, and its test, which existed to enforce staging.
  • The publish error now names E401 too and asks for a trusted publisher with npm publish allowed.
  • AGENTS.md and the getting-started section on pnpm trust errors describe direct publishing. They list the versions that were staged: annotate, carousel, and zoom 0.1.0 to 0.2.0, plus the nine packages approved at 0.14.2. Direct releases no longer support exception-free installs under pnpm's trustPolicy: no-downgrade for affected packages or presets that depend on them. Users who accept the change can verify provenance and add exceptions for the exact versions they install.

Before the next release:

  • Each package's trusted publisher must allow npm publish. fix(release): stage every package so pnpm's trust policy accepts new releases #435 suggested turning it off, and I couldn't check without a security key.
  • comark-motion needs a trusted publisher. Its 0.14.2 stage failed with E401.
  • Supersede the partial 0.14.2 release with a fresh, higher stable tag from main after this workflow lands. Leave live versions in place and reject the pending 0.14.2 stages on npm. Do not move or redispatch v0.14.2: that tag still contains the staging workflow.

🤖 Generated with Claude Code

…tead of staging on npm

Staging made every package wait for its own security-key approval on npmjs.com. The npm environment now requires a reviewer, so a release takes one approval in GitHub and then publishes with npm publish through OIDC trusted publishing, as before #435.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T12:14:28.186144Z
We couldn’t complete this review. Comment @codex review to try again.
d486410 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@484

comark-badge

pnpm add https://pkg.pr.new/comark-badge@484

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@484

comark-cards

pnpm add https://pkg.pr.new/comark-cards@484

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@484

comark-cast

pnpm add https://pkg.pr.new/comark-cast@484

comark-charts

pnpm add https://pkg.pr.new/comark-charts@484

comark-chat

pnpm add https://pkg.pr.new/comark-chat@484

comark-chips

pnpm add https://pkg.pr.new/comark-chips@484

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@484

comark-code

pnpm add https://pkg.pr.new/comark-code@484

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@484

comark-colors

pnpm add https://pkg.pr.new/comark-colors@484

comark-comments

pnpm add https://pkg.pr.new/comark-comments@484

comark-critic

pnpm add https://pkg.pr.new/comark-critic@484

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@484

comark-details

pnpm add https://pkg.pr.new/comark-details@484

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@484

comark-diff

pnpm add https://pkg.pr.new/comark-diff@484

comark-embed

pnpm add https://pkg.pr.new/comark-embed@484

comark-fields

pnpm add https://pkg.pr.new/comark-fields@484

comark-figure

pnpm add https://pkg.pr.new/comark-figure@484

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@484

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@484

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@484

comark-github

pnpm add https://pkg.pr.new/comark-github@484

comark-icon

pnpm add https://pkg.pr.new/comark-icon@484

comark-include

pnpm add https://pkg.pr.new/comark-include@484

comark-keys

pnpm add https://pkg.pr.new/comark-keys@484

comark-links

pnpm add https://pkg.pr.new/comark-links@484

comark-linter

pnpm add https://pkg.pr.new/comark-linter@484

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@484

comark-mark

pnpm add https://pkg.pr.new/comark-mark@484

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@484

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@484

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@484

comark-media

pnpm add https://pkg.pr.new/comark-media@484

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@484

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@484

comark-motion

pnpm add https://pkg.pr.new/comark-motion@484

comark-outline

pnpm add https://pkg.pr.new/comark-outline@484

comark-properties

pnpm add https://pkg.pr.new/comark-properties@484

comark-qr

pnpm add https://pkg.pr.new/comark-qr@484

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@484

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@484

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@484

comark-sources

pnpm add https://pkg.pr.new/comark-sources@484

comark-steps

pnpm add https://pkg.pr.new/comark-steps@484

comark-table

pnpm add https://pkg.pr.new/comark-table@484

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@484

comark-tests

pnpm add https://pkg.pr.new/comark-tests@484

comark-time

pnpm add https://pkg.pr.new/comark-time@484

comark-ui

pnpm add https://pkg.pr.new/comark-ui@484

comark-xref

pnpm add https://pkg.pr.new/comark-xref@484

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@484

commit: d486410

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

Important

The next direct release will fail clean installs of comark-ui under pnpm’s trustPolicy: no-downgrade. The cutover also needs an explicit plan for the partially published v0.14.2 tag.

Approach: Moving approval to GitHub simplifies releases, but it gives up the npm evidence that users with trustPolicy: no-downgrade need.

Reviewed changes in the release workflow and its maintainer and consumer docs:

  • Publish: Switches the dependency waves from npm stage publish to npm publish behind the npm environment. I confirmed that the environment has a required reviewer and allows v* tags.
  • Verification: Keeps the tagged build and test gate and removes the post-publish staged-evidence check, helper, and test.
  • Recovery and installs: Updates trusted-publisher setup, tag reruns, and the pnpm exact-version exception guidance.

⚠️ P1 — Class: release approval drops pnpm trust evidence

A clean install of the next stable comark-ui release under trustPolicy: no-downgrade will fail: the new preset requires sibling versions at or above its own version, but pnpm rejects direct OIDC publishes of comark-zoom, comark-carousel, comark-annotate, and other packages with a prior staged release. GitHub’s approval does not produce npm’s _npmUser.approver metadata, so the documented exceptions shift the cost to consumers on every upgrade rather than preserving the install path fixed by #435. npm now supports batch approval with one 2FA challenge for up to 100 versions, though availability is still rolling out by account.

Technical details
# Preserve installs under pnpm's trust policy

## Affected sites
- [.github/workflows/release.yaml:193](https://github.com/onmax/comark-ui/blob/d486410db151100dc72c0ee5b17798364f30bb37/.github/workflows/release.yaml#L193) — direct OIDC publish does not carry npm's staged approval evidence.
- [packages/ui/package.json:64](https://github.com/onmax/comark-ui/blob/d486410db151100dc72c0ee5b17798364f30bb37/packages/ui/package.json#L64-L114) — the packed `workspace:^` dependencies rule out falling back to versions older than the new lockstep release.
- [docs/pages/getting-started.md:254](https://github.com/onmax/comark-ui/blob/d486410db151100dc72c0ee5b17798364f30bb37/docs/pages/getting-started.md#L254-L281) — the workaround requires consumers to waive the check for specific versions.

## Required outcome
- Preserve a fresh `pnpm add comark-ui` under `trustPolicy: no-downgrade` without an exception for each new sibling release, or explicitly decide that this install path will no longer be supported.

## Suggested approach
- Check whether npm batch approval is available for the maintainer account before dropping staging. The largest current dependency wave has 43 packages, below the 100-version limit. Approve one wave at a time because npm batch actions can succeed partially.
- Verified the ranking with public registry metadata and clean pnpm resolutions: `[email protected]` returned `ERR_PNPM_TRUST_DOWNGRADE`; staged `[email protected]` resolved successfully.

⚠️ P1 — Class: recovery dispatch uses the old release workflow

The documented --ref vX.Y.Z retry runs the workflow stored at that tag, not the workflow on main. For the already partial v0.14.2, that workflow still stages packages, so rejecting the pending stages and rerunning the tag after merge will not complete the release via direct publish.

Technical details
# Define the transition for the existing release

## Affected sites
- [AGENTS.md:325](https://github.com/onmax/comark-ui/blob/d486410db151100dc72c0ee5b17798364f30bb37/AGENTS.md#L325) — the new retry instructions only run direct publish for tags that already contain the new workflow.
- [Failed v0.14.2 publish job](https://github.com/onmax/comark-ui/actions/runs/45209157933/job/137822409316) — staging failed on `[email protected]` with `E401` before later waves ran.

## Required outcome
- State which release first uses the new flow and how to handle the partial `v0.14.2` release before disposing of its pending stages. Finish it with the tagged staging workflow after fixing `comark-motion`'s publisher, or explicitly supersede it with a fresh release tag rather than relying on a redispatch to switch publishing modes.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub

vite-hub Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-24T12:34:57.090Z 1m 52s
View session Last seen running 2026-11-24T12:30:48.349Z 0s
View session Cancelled 2026-11-24T12:24:10.827Z 6m 33s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

Ready to merge; no repair push needed. The PR explicitly drops exception-free installs under pnpm’s no-downgrade policy for affected packages and directs maintainers to supersede v0.14.2 with a fresh stable tag, not redispatch it. I verified that v0.14.2 still stages packages. Hosted checks are green, shell syntax passed, and local lint passed with warnings. npm publisher setup remains a prerequisite for the next release, not for merge.

Session

Waiting for running checks before the next pass.

@vite-hub
vite-hub Bot merged commit 4bfcfcb into main Nov 24, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the ci/direct-publish-actions-approval branch November 24, 2026 12:40
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
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