mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user