Skip to content

Backport npm trusted publishing to 0.86#57664

Merged
cipolleschi merged 3 commits into
0.86-stablefrom
fix/0.86-publishing
Jul 24, 2026
Merged

Backport npm trusted publishing to 0.86#57664
cipolleschi merged 3 commits into
0.86-stablefrom
fix/0.86-publishing

Conversation

@cipolleschi

@cipolleschi cipolleschi commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • consolidate release, nightly, and bumped-package npm publishing into publish-npm.yml
  • authenticate npm publishing through GitHub OIDC using the npm-publish environment
  • use Node 24/npm 11.5+ and remove legacy GHA_NPM_TOKEN handling
  • preserve the 0.86 Hermes V1 and Apple prebuild interfaces

This backports the trusted-publishing implementation from 0.87 without unrelated Hermes or release refactors.

Test plan

  • yarn test scripts/releases-ci/__tests__/publish-npm-test.js --runInBand (11 tests passed)
  • parsed all changed YAML files successfully
  • verified exactly two npm publishing jobs have id-token: write and use the npm-publish environment
  • verified no publishing action or workflow references GHA_NPM_TOKEN, gha-npm-token, or _authToken
  • git diff --check origin/0.86-stable...HEAD

Note

The observed v0.86.1 failure occurs earlier in Sonatype staging-profile discovery and still requires restoring Sonatype access to the com.facebook namespace. Because the tag already contains the old workflow, rerunning that specific release also requires its legacy npm token to remain valid.

Changelog:

[INTERNAL] - Backport npm trusted publishing to the 0.86 release line.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 24, 2026
@cipolleschi cipolleschi changed the title Backport npm trusted publishing to 0.86 Backport npm trusted publishing and reset 0.86.1 Jul 24, 2026
@cipolleschi cipolleschi changed the title Backport npm trusted publishing and reset 0.86.1 Backport npm trusted publishing to 0.86 Jul 24, 2026
@cipolleschi
cipolleschi force-pushed the fix/0.86-publishing branch from 0ed30d3 to 4f6a7c9 Compare July 24, 2026 11:55
@cipolleschi
cipolleschi merged commit 5b9e949 into 0.86-stable Jul 24, 2026
12 checks passed
@cipolleschi
cipolleschi deleted the fix/0.86-publishing branch July 24, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants