File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ runs:
2323 uses : ruby/setup-ruby@v1
2424 with :
2525 ruby-version : ${{ inputs.ruby-version }}
26- - name : Set nightly Hermes versions
26+ - name : Set Hermes prebuilt version
2727 shell : bash
2828 run : |
29- node ./scripts/releases/use-hermes-nightly .js
29+ node ./scripts/releases/use-hermes-prebuilt .js
3030 - name : Run yarn install again, with the correct hermes version
3131 uses : ./.github/actions/yarn-install
3232 - name : Download ReactNativeDependencies
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ runs:
3232 uses : ruby/setup-ruby@v1
3333 with :
3434 ruby-version : ${{ inputs.ruby-version }}
35- - name : Set nightly Hermes versions
35+ - name : Set Hermes prebuilt version
3636 shell : bash
3737 run : |
38- node ./scripts/releases/use-hermes-nightly .js
38+ node ./scripts/releases/use-hermes-prebuilt .js
3939 - name : Run yarn install again, with the correct hermes version
4040 uses : ./.github/actions/yarn-install
4141 - name : Prepare IOS Tests
Original file line number Diff line number Diff line change @@ -368,10 +368,10 @@ jobs:
368368 cache-encryption-key : ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
369369 - name : Run yarn install
370370 uses : ./.github/actions/yarn-install
371- - name : Set nightly Hermes versions
371+ - name : Set Hermes prebuilt version
372372 shell : bash
373373 run : |
374- node ./scripts/releases/use-hermes-nightly .js
374+ node ./scripts/releases/use-hermes-prebuilt .js
375375 - name : Run yarn install again, with the correct hermes version
376376 uses : ./.github/actions/yarn-install
377377 - name : Prepare the Helloworld application
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ * @flow strict-local
8+ * @format
9+ */
10+
11+ 'use strict' ;
12+
13+ const { getReactNativePackage} = require ( '../shared/monorepoUtils' ) ;
14+ const { updateHermesVersionsToPrebuilt} = require ( './utils/hermes-utils' ) ;
15+
16+ async function main ( ) {
17+ const { packageJson} = await getReactNativePackage ( ) ;
18+ const hermesCompilerVersion = packageJson . dependencies ?. [ 'hermes-compiler' ] ;
19+
20+ if ( hermesCompilerVersion != null && hermesCompilerVersion !== '0.0.0' ) {
21+ console . log (
22+ `Skipping hermes prebuilt update: hermes-compiler is pinned to ${ hermesCompilerVersion } ` ,
23+ ) ;
24+ return ;
25+ }
26+
27+ await updateHermesVersionsToPrebuilt ( ) ;
28+ }
29+
30+ if ( require . main === module ) {
31+ void main ( ) ;
32+ }
You can’t perform that action at this time.
0 commit comments