You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update release processes to update the Hermes versions independently from React Native (#53985)
Summary:
Pull Request resolved: #53985
Changelog: [Internal]
Updates the release scripts to set the Hermes version independently from React Native.
Reviewed By: cipolleschi
Differential Revision: D82438054
fbshipit-source-id: 154c19d1d0d16fd5879ad663428d803ceadc5a1f
'Hermes release tag to use for this React Native release, ex. hermes-2022-02-21-RNv0.68.0',
28
-
required: true,
29
-
}).argv;
31
+
letargv=yargs
32
+
.option('t',{
33
+
alias: 'tag',
34
+
describe:
35
+
'Hermes release tag to use for this React Native release, ex. hermes-2022-02-21-RNv0.68.0. This tag will be used when building Hermes from source.',
36
+
required: true,
37
+
})
38
+
.option('s',{
39
+
alias: 'v1-tag',
40
+
describe:
41
+
'Hermes V1 release tag to use for this React Native release, ex. 250829098.0.0. This tag will be used when building Hermes V1 from source.',
42
+
required: true,
43
+
})
44
+
.option('h',{
45
+
alias: 'hermes-version',
46
+
describe:
47
+
'Hermes version to use for this React Native release, ex. 250829098.0.0. This version will be used when consuming Hermes from a prebuilt package.',
48
+
required: false,
49
+
})
50
+
.option('v',{
51
+
alias: 'hermes-v1-version',
52
+
describe:
53
+
'Hermes V1 version to use for this React Native release, ex. 250829098.0.0. This version will be used when consuming Hermes V1 from a prebuilt package.',
54
+
required: false,
55
+
}).argv;
30
56
31
57
asyncfunctionmain(){
32
58
// $FlowFixMe[prop-missing]
33
59
consthermesTag=argv.tag;
34
-
const{confirmHermesTag}=awaitinquirer.prompt({
60
+
// $FlowFixMe[prop-missing]
61
+
consthermesV1Tag=argv['v1-tag'];
62
+
// $FlowFixMe[prop-missing]
63
+
lethermesVersion=argv['hermes-version'];
64
+
// $FlowFixMe[prop-missing]
65
+
lethermesV1Version=argv['hermes-v1-version'];
66
+
67
+
if(!hermesVersion){
68
+
console.log(
69
+
'No Hermes version provided. Fetching the latest version from NPM...',
70
+
);
71
+
hermesVersion=awaitgetPackageVersionStrByTag(
72
+
'hermes-compiler',
73
+
'latest-v0',
74
+
);
75
+
}
76
+
77
+
if(!hermesV1Version){
78
+
console.log(
79
+
'No Hermes V1 version provided. Fetching the latest version from NPM...',
0 commit comments