From 6df9c0fe376b1c3b75e2e49e5d0cc5710b27c9c3 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 7 Jul 2026 11:08:32 +0200 Subject: [PATCH 1/2] Generalize RN build triggers and dry-run guard for future release trains Make static_h the source of truth so branches cut for future release trains (e.g. 26xxxx/27xxxx) inherit the correct behavior without manual edits: - Triggers: use globs ('*-stable', '*-staging') for push and pull_request so any future stable/staging branch runs the RN build automatically. - Guard: force dry-run for static_h and any '*-staging' branch (even via workflow_dispatch). '*-stable' branches are unaffected and can still release. '250829098.0.0-stable' is now covered by the '*-stable' glob. --- .github/workflows/rn-build-hermes.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rn-build-hermes.yml b/.github/workflows/rn-build-hermes.yml index a1b60d9797e..f66bb240a29 100644 --- a/.github/workflows/rn-build-hermes.yml +++ b/.github/workflows/rn-build-hermes.yml @@ -14,10 +14,13 @@ on: pull_request: branches: - static_h + - '*-stable' + - '*-staging' push: branches: - - 250829098.0.0-stable - static_h + - '*-stable' + - '*-staging' permissions: contents: read @@ -56,9 +59,11 @@ jobs: GHA_NPM_TOKEN: ${{ secrets.GHA_NPM_TOKEN }} - id: set_release_type run: | - # Guard: never allow release mode on static_h branch - if [[ $REF == "refs/heads/static_h" ]]; then - echo "Branch is static_h, forcing dry-run mode" + # Guard: never allow release mode on non-releasing branches: + # static_h and any branch whose name ends in `-staging`, even via + # workflow_dispatch. + if [[ $REF == "refs/heads/static_h" || $REF == refs/heads/*-staging ]]; then + echo "Branch is a non-releasing branch, forcing dry-run mode" echo "RELEASE_TYPE=dry-run" >> $GITHUB_OUTPUT elif [[ $EVENT_NAME == "workflow_dispatch" ]]; then echo "Setting release type to ${{ github.event.inputs.release-type }}" From 612d6c3d0052befacc0f3d49f8c51ab2f7f4a8df Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 7 Jul 2026 11:12:58 +0200 Subject: [PATCH 2/2] Bump hermes-compiler version to 260318099.0.0 Advance static_h to the next release train's version. --- npm/hermes-compiler/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/hermes-compiler/package.json b/npm/hermes-compiler/package.json index 76e968b2308..e3055ef89aa 100644 --- a/npm/hermes-compiler/package.json +++ b/npm/hermes-compiler/package.json @@ -1,6 +1,6 @@ { "name": "hermes-compiler", - "version": "250829098.0.0", + "version": "260318099.0.0", "private": false, "description": "The hermes compiler CLI used during the React Native build process", "license": "MIT",