From e1e88522133950fe49a07656bf7027c416df6ecc Mon Sep 17 00:00:00 2001 From: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Date: Wed, 12 Apr 2023 13:48:19 -0700 Subject: [PATCH] [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. --- tools/ci_build/github/js/validate-npm-packages.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/ci_build/github/js/validate-npm-packages.py b/tools/ci_build/github/js/validate-npm-packages.py index 6e3f96bdbb..1278cacccd 100644 --- a/tools/ci_build/github/js/validate-npm-packages.py +++ b/tools/ci_build/github/js/validate-npm-packages.py @@ -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)")