Skip to content

ci(release): stage packages with npm stage publish - #652

Merged
chrispader merged 1 commit into
mainfrom
ci/staged-publishing
Dec 6, 2026
Merged

chrispader merged 1 commit into
mainfrom
ci/staged-publishing

Conversation

@chrispader

Copy link
Copy Markdown
Member

Releases now upload every package with npm stage publish instead of npm publish. A staged version stays private until a maintainer approves it with 2FA on npmjs.com, so the release workflow alone can no longer put a version on npm.

How a release runs with this change:

  1. The publish job stages all pending packages. The tag is fixed at this point.
  2. The log asks a maintainer to approve the staged packages in npmjs.com's Staged Packages tab.
  3. Verification waits up to 20 minutes for the approved versions to appear. Packages without a stable release then get their channel dist-tag, as before.
  4. If approval takes longer, the job fails with a hint to approve and then resume with release_tag. A resumed run skips versions that are already published.

npm stage publish needs npm 11.15.0 or newer, and moving dist-tags with trusted publishing needs 11.21.0. The npm version check now always runs, so an older npm stops the release before any upload. The publish job already installs npm 11.21.3.

Before the next release, each package's trusted publisher on npmjs.com must allow staged publishing. Publishers created before May 20, 2026 allow only npm publish.

🤖 Generated with Claude Code

Releases now stage every package with `npm stage publish`. A staged version stays private until a maintainer approves it with 2FA on npmjs.com, so a compromised workflow can no longer publish on its own. Verification waits for that approval, and an unapproved release resumes with release_tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-native-nitro-sqlite Building Building Preview Dec 6, 2026 11:15am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chrispader
chrispader merged commit cdd5654 into main Dec 6, 2026
2 of 4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 182c4ef3 Deployed Dec 6, 2026 by vercel[bot]
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