From a28d3961bd6ce561d20419c49ce37596896bcdf0 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Fri, 10 Jan 2025 03:44:04 -0800 Subject: [PATCH] Do not reset rn-artifacts-version on release branch (#48572) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48572 Because of this extra step on build-android, we're seeing the version 1000.0.0- on commits on the release branch. This prevents it. Changelog: [Internal] [Changed] - Do not reset rn-artifacts-version on release branch Reviewed By: cipolleschi Differential Revision: D67975049 fbshipit-source-id: dace7c931ec310538c11c4b9e544fdc2241a1d0c --- .github/actions/build-android/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/build-android/action.yml b/.github/actions/build-android/action.yml index b18e605c8eb90d..4f32483d975a65 100644 --- a/.github/actions/build-android/action.yml +++ b/.github/actions/build-android/action.yml @@ -20,6 +20,8 @@ runs: - name: Set React Native Version shell: bash run: node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }} + # We don't want to re-set the artifacts version if we're on the release branch. + if: ${{ !contains(github.ref, '-stable') }} - name: Setup gradle uses: ./.github/actions/setup-gradle with: