Skip to content

ci(publish): allow retagging React Native npm latest#378

Merged
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3710_fix-rn-package-latest-tag
Jul 15, 2026
Merged

ci(publish): allow retagging React Native npm latest#378
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-3710_fix-rn-package-latest-tag

Conversation

@phobetron

@phobetron Charles Hudson (phobetron) commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Publishes @contentful/optimization-react-native prerelease versions with the latest dist-tag instead of next.
  • Adds a guarded retag_existing workflow input so an already-published version can have its GitHub Packages dist-tag updated without republishing.
  • Resolves publish and retag targets before artifact work, so retag-only runs skip build, notice generation, package creation, notice verification, and artifact upload.
  • Keeps the existing default skip behavior for already-published packages unless retag_existing=true is 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, leaving latest stuck on 0.1.0-alpha18.

After this merges, retag the existing RN beta from main:

gh workflow run publish-npm.yaml \
  --ref main \
  -f tag=optimization-react-native-v1.0.0-beta.1 \
  -f publish=true \
  -f retag_existing=true

[NT-3710]

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)]
@phobetron
Charles Hudson (phobetron) force-pushed the NT-3710_fix-rn-package-latest-tag branch from dccc8d2 to a2942d8 Compare July 15, 2026 13:23
@phobetron
Charles Hudson (phobetron) merged commit 85433af into main Jul 15, 2026
38 checks passed
@phobetron
Charles Hudson (phobetron) deleted the NT-3710_fix-rn-package-latest-tag branch July 15, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant