ci(publish): allow retagging React Native npm latest#378
Merged
Charles Hudson (phobetron) merged 1 commit intoJul 15, 2026
Conversation
Charles Hudson (phobetron)
force-pushed
the
NT-3710_fix-rn-package-latest-tag
branch
from
July 15, 2026 13:01
72c616a to
dccc8d2
Compare
Allow the npm publish workflow to move dist-tags for already-published versions when explicitly requested. Keep prerelease npm packages on next by default, but publish React Native prereleases to latest so latest no longer points at the older alpha line. Resolve publish and retag targets before build/package work so retag-only runs can update dist-tags without rebuilding, regenerating notices, packing, or uploading artifacts for historical release tags. [[NT-3710](https://contentful.atlassian.net/browse/NT-3710)]
Charles Hudson (phobetron)
force-pushed
the
NT-3710_fix-rn-package-latest-tag
branch
from
July 15, 2026 13:23
dccc8d2 to
a2942d8
Compare
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
@contentful/optimization-react-nativeprerelease versions with thelatestdist-tag instead ofnext.retag_existingworkflow input so an already-published version can have its GitHub Packages dist-tag updated without republishing.retag_existing=trueis explicitly passed.Why
React Native is still beta, but its current beta line should be the default npm install line. The existing workflow routed every hyphenated version to
next, leavinglateststuck on0.1.0-alpha18.After this merges, retag the existing RN beta from
main:[NT-3710]