[build/npm] dump ORT_COMMON_FROM from validation (#15475)

### Description
dump ORT_COMMON_FROM from validation

This writes environment variable ORT_COMMON_FROM for later steps in the
release pipeline to use.
This commit is contained in:
Yulong Wang 2023-04-12 13:48:19 -07:00 committed by GitHub
parent 3875c824d5
commit e1e8852213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,6 +105,13 @@ ort_common_ver = (
ort_node_common_ver if RELEASE_NODE else (ort_web_common_ver if RELEASE_WEB else ort_react_native_common_ver)
)
ort_common_from = (
"" if ort_common_ver == "" else ("node" if RELEASE_NODE else ("web" if RELEASE_WEB else "react-native"))
)
print("====== output environment variables ======")
print(f"##vso[task.setvariable variable=ORT_COMMON_FROM]{ort_common_from}")
if tag == "latest" or tag == "" or tag == "rc":
if not RELEASE_NODE or not RELEASE_WEB or not RELEASE_REACT_NATIVE:
raise Exception("@latest or @rc build must release all packages (node, web, react-native)")