Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror

This commit is contained in:
Riccardo Cipolleschi committed 2025-08-13 11:57:54 +01:00
1 parent 5a315f8d6b
commit a74d930c93
1 file changed
+4 -1
@@ -204,7 +204,10 @@ def hermestag_file(react_native_path)
end
def release_tarball_url(version, build_type)
maven_repo_url = "https://repo1.maven.org/maven2"
maven_repo_url =
ENV['ENTERPRISE_REPOSITORY'] != nil && ENV['ENTERPRISE_REPOSITORY'] != "" ?
ENV['ENTERPRISE_REPOSITORY'] :
"https://repo1.maven.org/maven2"
namespace = "com/facebook/react"
# Sample url from Maven:
# 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