Skip to content

Fix local release testing: publish with --tag for prerelease versions#57552

Open
zeyap wants to merge 1 commit into
mainfrom
fix-e2e-publish-prerelease-tag
Open

Fix local release testing: publish with --tag for prerelease versions#57552
zeyap wants to merge 1 commit into
mainfrom
fix-e2e-publish-prerelease-tag

Conversation

@zeyap

@zeyap zeyap commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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).

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`).
@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 14, 2026
@github-actions

Copy link
Copy Markdown

Caution

Missing Changelog

Please add a Changelog to your PR description. See Changelog format

@meta-codesync

meta-codesync Bot commented Jul 14, 2026

Copy link
Copy Markdown

@zeyap has imported this pull request. If you are a Meta employee, you can view this in D111995913.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant