Skip to content

[RN][CI] add React Native release publishing flow#192

Open
kieran-osgood-shopify wants to merge 3 commits into
mainfrom
kieran-osgood/release-workflow/react-native-publish
Open

[RN][CI] add React Native release publishing flow#192
kieran-osgood-shopify wants to merge 3 commits into
mainfrom
kieran-osgood/release-workflow/react-native-publish

Conversation

@kieran-osgood-shopify
Copy link
Copy Markdown
Contributor

@kieran-osgood-shopify kieran-osgood-shopify commented May 22, 2026

What?

  • Adds React Native to workflow_dispatch for releases
    • Performs validation on the semver tag compared to package json
    • Creates a react-native/X.Y.Z tag
    • Builds and Publishes that tag
  • Updates the RN podspec source tag to use the react-native/ namespace.
  • Changed workflow dispatch to avoid confusion between draft and dry-run settings
    Theres some scripts added to give us the ability to test tarbals of the release build against expo and react-native community cli installs, as well as with npm / yarn / bun / pnpm.
Before After
image image

I also fixed some output on the release plan
image

Other

In order to produce react-native 4.0.0-alpha.1 I needed to update podspec and gradle to point to the swift/android 4.0.0-alpha.1 versions published last week

We have this awkward process for gradle, where the android sdk has to build and publish to mavenLocal for local dev, this is gated behind the USE_LOCAL_SDK flag

This could fail silently if mavenLocal didn't have a 4.0.0-alpha.1 version, so I added an exclusiveContent filter which ensures the checkout-kit library, when the USE_LOCAL_SDK flag is true, will fail to build, ensuring we don't accidentally false positive test against a published SDK in maven.

 if (useLocalSdk) {
    exclusiveContent {
      forRepository {
        mavenLocal()
      }
      filter {
        includeModule("com.shopify", "checkout-kit")
      }
    }
  }

Copy link
Copy Markdown
Contributor Author

kieran-osgood-shopify commented May 22, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 22, 2026

React Native — Coverage Report

Lines Statements Branches Functions
Coverage: 92%
91.59% (316/345) 87.25% (178/204) 100% (82/82)

@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from kieran-osgood/05-22-feataddworkflowdispatchforreleasecreation to graphite-base/192 May 22, 2026 16:19
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 279a5c4 to 85a89b8 Compare May 22, 2026 16:20
@graphite-app graphite-app Bot changed the base branch from graphite-base/192 to main May 22, 2026 16:20
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 85a89b8 to 42271d0 Compare May 22, 2026 16:20
@kieran-osgood-shopify kieran-osgood-shopify added the #gsd:50662 Rebase Checkout Kit on UCP label May 27, 2026
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 42271d0 to 19a0381 Compare May 28, 2026 10:08

if [[ "$VERSION" == *-* ]]; then
PRERELEASE="true"
NPM_TAG="next"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this matches what the web workflow does too

@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 1649f78 to 4d22b7f Compare May 28, 2026 11:32
@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from main to graphite-base/192 May 28, 2026 12:41
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 4d22b7f to 3cea7db Compare May 28, 2026 12:41
@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from graphite-base/192 to kieran-osgood/release-workflow/rn-native-sdk-versions May 28, 2026 12:41
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/rn-native-sdk-versions branch from 700a4a1 to 6601e20 Compare May 28, 2026 12:45
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 3cea7db to fc790ec Compare May 28, 2026 12:46
@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from kieran-osgood/release-workflow/rn-native-sdk-versions to graphite-base/192 May 28, 2026 12:49
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from fc790ec to a31a93b Compare May 28, 2026 12:49
@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from graphite-base/192 to kieran-osgood/05-28-feataddcisafetynetforaccidentallocalpodspecversions May 28, 2026 12:49
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from a31a93b to e6a6ab8 Compare May 28, 2026 13:05
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/05-28-feataddcisafetynetforaccidentallocalpodspecversions branch from 165f743 to acc13b7 Compare May 28, 2026 13:05
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/05-28-feataddcisafetynetforaccidentallocalpodspecversions branch from acc13b7 to d3889c9 Compare May 28, 2026 13:31
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from e6a6ab8 to 0c372c3 Compare May 28, 2026 13:31
@kieran-osgood-shopify kieran-osgood-shopify changed the title feat: add React Native release publishing [RN][CI] add React Native release publishing flow May 28, 2026
@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review May 28, 2026 14:06
@kieran-osgood-shopify kieran-osgood-shopify requested a review from a team as a code owner May 28, 2026 14:06
@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as draft May 28, 2026 15:56
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch 2 times, most recently from f14aba1 to 8f0c805 Compare May 29, 2026 08:49
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 29, 2026

Web — Coverage Report

Lines Statements Branches Functions
Coverage: 98%
98.96% (571/577) 90.41% (151/167) 100% (55/55)

@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from kieran-osgood/05-28-feataddcisafetynetforaccidentallocalpodspecversions to graphite-base/192 May 29, 2026 10:32
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 8f0c805 to f279eaf Compare May 29, 2026 10:49
@graphite-app graphite-app Bot changed the base branch from graphite-base/192 to main May 29, 2026 10:50
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from f279eaf to 05bbfb3 Compare May 29, 2026 10:50
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch 3 times, most recently from bb136bf to 8e3711f Compare June 1, 2026 14:04
@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review June 1, 2026 14:23
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/release-workflow/react-native-publish branch from 8e3711f to 3fc3f35 Compare June 1, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant