Fix local release testing: publish with --tag for prerelease versions#57552
Open
zeyap wants to merge 1 commit into
Open
Fix local release testing: publish with --tag for prerelease versions#57552zeyap wants to merge 1 commit into
zeyap wants to merge 1 commit into
Conversation
Summary: `scripts/e2e/init-project-e2e.js` publishes in-repo packages to the local Verdaccio proxy with `npm publish`, but omits `--tag`. npm >= 11 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` on any machine using npm >= 11 (bundled with Node 24+). Pass an explicit `--tag`. This is a throwaway local registry and the install step pins the exact version, so the dist-tag value is not significant. Changelog: [Internal] Test Plan: `yarn test-release-local -t RNTestProject -p iOS` gets past the publish step on npm 11 (previously failed immediately at `npm publish`).
|
@zeyap has imported this pull request. If you are a Meta employee, you can view this in D111995913. |
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).