Skip to content

fix(ci): pin npm@11 in publish workflow, file issue on publish failure - #4265

Merged
mfazekas merged 1 commit into
mainfrom
claude/npm-publish-failure-1-3-4-ae0cfb
Jul 22, 2026
Merged

fix(ci): pin npm@11 in publish workflow, file issue on publish failure#4265
mfazekas merged 1 commit into
mainfrom
claude/npm-publish-failure-1-3-4-ae0cfb

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Description

The v10.3.3 and v10.3.4 npm publishes both failed silently: the "Upgrade npm for OIDC support" step runs npm install -g npm@latest, and npm 12 now requires node >= 22.22.2 while .nvmrc pins 22.16.0, so the step fails with EBADENGINE (see v10.3.4 run, v10.3.3 run). npm's latest dist-tag is still 10.3.2.

This pins npm@11 (supports node >= 22.9.0 and has the OIDC/provenance support since 11.5.1), and adds a notify-failure job that opens a GitHub issue whenever the publish job fails, so a broken release no longer goes unnoticed.

Note: re-running the failed runs won't help since release-triggered workflows use the workflow file from the tagged commit; v10.3.3/v10.3.4 need to be re-released from a commit containing this fix (or superseded by a 10.3.5).

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

CI-only change; example app checklist items are not applicable.

npm install -g npm@latest now installs npm 12, which requires node >= 22.22.2
while .nvmrc pins 22.16.0 (EBADENGINE) - this silently broke the v10.3.3 and
v10.3.4 npm publishes. Pin npm@11 (supports node >=22.9.0, has OIDC since
11.5.1) and add a job that opens an issue when the publish job fails.
@mfazekas
mfazekas merged commit 8f4782b into main Jul 22, 2026
7 checks passed
@mfazekas
mfazekas deleted the claude/npm-publish-failure-1-3-4-ae0cfb branch July 22, 2026 17:21
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