diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e471fb0b78b..ea3f97acced 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -29,7 +29,7 @@ jobs: prebuild_react_native_core: uses: ./.github/workflows/prebuild-ios-core.yml with: - use-hermes-nightly: true + use-hermes-prebuilt: true version-type: nightly secrets: inherit needs: [prebuild_apple_dependencies] diff --git a/.github/workflows/prebuild-ios-core.yml b/.github/workflows/prebuild-ios-core.yml index 6edd91afcd0..5e218f2a7f9 100644 --- a/.github/workflows/prebuild-ios-core.yml +++ b/.github/workflows/prebuild-ios-core.yml @@ -8,8 +8,8 @@ on: type: string required: false default: '' - use-hermes-nightly: - description: 'Whether to use the hermes nightly build or read the version from the versions.properties file' + use-hermes-prebuilt: + description: 'Whether to resolve Hermes from the latest-v1 npm dist-tag (true) or from the version pinned in version.properties (false)' type: boolean required: false default: false @@ -47,10 +47,10 @@ jobs: - name: Set Hermes version shell: bash run: | - # Nightly RN builds resolve Hermes from npm's latest-v1 dist-tag (TODO: - # rename to 'latest' once V1 is the only Hermes on npm). Stable builds - # use the version pinned in version.properties. - if [ "${{ inputs.use-hermes-nightly }}" == "true" ]; then + # Non-stable RN builds resolve Hermes from npm's latest-v1 dist-tag. + # TODO: rename 'latest-v1' to 'latest' once V1 is the only Hermes on npm. + # Stable builds use the version pinned in version.properties. + if [ "${{ inputs.use-hermes-prebuilt }}" == "true" ]; then HERMES_VERSION="latest-v1" else HERMES_VERSION=$(sed -n 's/^HERMES_VERSION_NAME=//p' packages/react-native/sdks/hermes-engine/version.properties) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 1406e9fd73a..09dad237c7b 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -100,7 +100,7 @@ jobs: prebuild_react_native_core: uses: ./.github/workflows/prebuild-ios-core.yml with: - use-hermes-nightly: ${{ !endsWith(github.ref_name, '-stable') }} + use-hermes-prebuilt: ${{ !endsWith(github.ref_name, '-stable') }} secrets: inherit needs: [prebuild_apple_dependencies]