Skip to content

[RN][CI] Setup release publishing flow#248

Merged
kieran-osgood-shopify merged 1 commit into
mainfrom
kieran-osgood/release-workflow/react-native-publish_split
Jun 2, 2026
Merged

[RN][CI] Setup release publishing flow#248
kieran-osgood-shopify merged 1 commit into
mainfrom
kieran-osgood/release-workflow/react-native-publish_split

Conversation

@kieran-osgood-shopify

@kieran-osgood-shopify kieran-osgood-shopify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

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")
      }
    }
  }

fix: prepare React Native npm publish workflow

chore: simplify release workflow modes

kieran-osgood-shopify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Web — Coverage Report

Lines Statements Branches Functions
Coverage: 99%
98.8% (249/252) 87.85% (123/140) 100% (54/54)

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

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 title feat: add React Native release publishing [RN][CI] add React Native release publishing flow Jun 2, 2026
@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review June 2, 2026 16:05
@kieran-osgood-shopify kieran-osgood-shopify requested a review from a team as a code owner June 2, 2026 16:05
@kieran-osgood-shopify kieran-osgood-shopify changed the title [RN][CI] add React Native release publishing flow [RN][CI] Setup release publishing flow Jun 2, 2026

@Juanita-Dash Juanita-Dash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kieran-osgood-shopify kieran-osgood-shopify merged commit d126dcc into main Jun 2, 2026
25 checks passed
@kieran-osgood-shopify kieran-osgood-shopify deleted the kieran-osgood/release-workflow/react-native-publish_split branch June 2, 2026 16:38
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.

3 participants