Skip to content

Commit a74d930

Browse files
committed
Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror
1 parent 5a315f8 commit a74d930

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/react-native/sdks/hermes-engine/hermes-utils.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ def hermestag_file(react_native_path)
204204
end
205205

206206
def release_tarball_url(version, build_type)
207-
maven_repo_url = "https://repo1.maven.org/maven2"
207+
maven_repo_url =
208+
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
209+
ENV['ENTERPRISE_REPOSITORY'] :
210+
"https://repo1.maven.org/maven2"
208211
namespace = "com/facebook/react"
209212
# Sample url from Maven:
210213
# https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.0/react-native-artifacts-0.71.0-hermes-ios-debug.tar.gz

0 commit comments

Comments
 (0)