Fix local release testing: publish with --tag for prerelease versions (#57552)#57552
Closed
zeyap wants to merge 1 commit into
Closed
Fix local release testing: publish with --tag for prerelease versions (#57552)#57552zeyap wants to merge 1 commit into
zeyap wants to merge 1 commit into
Conversation
|
@zeyap has imported this pull request. If you are a Meta employee, you can view this in D111995913. |
…#57552) Summary: `scripts/e2e/init-project-e2e.js` publishes in-repo packages to the local Verdaccio proxy with `npm publish`, but omits `--tag`. **npm ≥ 11** (bundled with Node 24+) refuses to publish a prerelease version (e.g. `0.87.0-rc.0`) without an explicit tag: ``` npm error You must specify a tag using --tag when publishing a prerelease version. ``` This breaks `yarn test-release-local` immediately at the publish step on any machine using npm ≥ 11. ## Fix Pass an explicit `--tag react-native-e2e`. This is a throwaway local registry and the install step pins the **exact** version, so the dist-tag value is not significant for resolution. ## Changelog [Internal] - Fix `test-release-local` publishing on npm ≥ 11 Test Plan: `yarn test-release-local -t RNTestProject -p iOS` now gets past the publish step on npm 11 (previously failed immediately at `npm publish`). Reviewed By: christophpurrer Differential Revision: D111995913 Pulled By: zeyap
bed83bd to
719a78c
Compare
|
@zeyap has exported this pull request. If you are a Meta employee, you can view the originating Diff in D111995913. |
react-native-bot
pushed a commit
that referenced
this pull request
Jul 15, 2026
…#57552) Summary: `scripts/e2e/init-project-e2e.js` publishes in-repo packages to the local Verdaccio proxy with `npm publish`, but omits `--tag`. **npm ≥ 11** (bundled with Node 24+) refuses to publish a prerelease version (e.g. `0.87.0-rc.0`) without an explicit tag: ``` npm error You must specify a tag using --tag when publishing a prerelease version. ``` This breaks `yarn test-release-local` immediately at the publish step on any machine using npm ≥ 11. ## Fix Pass an explicit `--tag react-native-e2e`. This is a throwaway local registry and the install step pins the **exact** version, so the dist-tag value is not significant for resolution. ## Changelog [Internal] - Fix `test-release-local` publishing on npm ≥ 11 Pull Request resolved: #57552 Test Plan: `yarn test-release-local -t RNTestProject -p iOS` now gets past the publish step on npm 11 (previously failed immediately at `npm publish`). Reviewed By: christophpurrer Differential Revision: D111995913 Pulled By: zeyap fbshipit-source-id: 107a96d5c4317129228f783ad52bffe1578d1138
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
scripts/e2e/init-project-e2e.jspublishes in-repo packages to the local Verdaccio proxy withnpm publish, but omits--tag. npm ≥ 11 (bundled with Node 24+) refuses to publish a prerelease version (e.g.0.87.0-rc.0) without an explicit tag:This breaks
yarn test-release-localimmediately at the publish step on any machine using npm ≥ 11.Fix
Pass an explicit
--tag react-native-e2e. This is a throwaway local registry and the install step pins the exact version, so the dist-tag value is not significant for resolution.Changelog
[Internal] - Fix
test-release-localpublishing on npm ≥ 11Test Plan:
yarn test-release-local -t RNTestProject -p iOSnow gets past the publish step on npm 11 (previously failed immediately atnpm publish).Reviewed By: christophpurrer
Differential Revision: D111995913
Pulled By: zeyap