Skip to content

Stage npm releases for maintainer approval on v5-dev - #43335

Merged
mdo merged 3 commits into
v5-devfrom
codex/npm-trusted-publishing-v5
Nov 10, 2026
Merged

mdo merged 3 commits into
v5-devfrom
codex/npm-trusted-publishing-v5

Conversation

@mdo

@mdo mdo commented Nov 10, 2026 •

Copy link
Copy Markdown
Member
  • Stage npm packages when a GitHub release is published. A maintainer must approve each package on npm with two-factor authentication before it becomes public.
  • Use npm trusted publishing with OIDC authentication and npm 11.21.1. This version supports staged publishing and the v5 build scripts. No npm publishing token is required.
  • Check that the release tag matches the package version, then install dependencies and build the package. Use next for prereleases and latest for stable releases.
  • Validated the workflow YAML, version and tag checks, both package builds, and staged-publishing dry runs. The v5 dry run used a temporary version of 5.3.9 because 5.3.8 is already published. The main dry run used 6.0.0-alpha.1 with the next tag. No package was uploaded. OIDC authentication needs a real staging upload. The npm trusted publisher is configured separately.

mdo added 2 commits November 9, 2026 20:30
Publish GitHub releases through npm OIDC authentication. Check the
package version against the release tag and build the package before
publishing. Send prereleases to next and stable releases to latest.
Stage release packages for npm approval with two-factor authentication.
Install npm 12.2.1 so the workflow supports staged publishing without
relying on the npm version bundled with Node.js.
@netlify

netlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for twbs-bootstrap ready!

Name Link
🔨 Latest commit 07e3612
🔍 Latest deploy log https://app.netlify.com/projects/twbs-bootstrap/deploys/6af2b2a2a2706f6942dccd35
😎 Deploy Preview https://deploy-preview-43335--twbs-bootstrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@mdo mdo added ci GitHub workflows and CI checks meta The repository itself: templates, guidelines, config v5 v5, the v5-dev branch labels Nov 10, 2026
npm 12 rejects the version_short config passed by the v5 build scripts.
Use npm 11.21.1 to support those builds and staged publishing.
@mdo
mdo merged commit c0acd9c into v5-dev Nov 10, 2026
14 of 15 checks passed
@mdo
mdo deleted the codex/npm-trusted-publishing-v5 branch November 10, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub workflows and CI checks meta The repository itself: templates, guidelines, config v5 v5, the v5-dev branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant