From b4df19c029309425081542dda1d681f7c61720ff Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 4 May 2020 17:25:45 -0700 Subject: [PATCH] build: update release precheck to rely on ng-dev for bazel stamping (#36925) Migrate from using tools/bazel_stamp_vars.js to ng-dev to obtain the current version name in the pre-check script. PR Close #36925 --- scripts/release/pre-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/pre-check b/scripts/release/pre-check index f1e8b9844a..82ebf99255 100755 --- a/scripts/release/pre-check +++ b/scripts/release/pre-check @@ -3,7 +3,7 @@ # Runs the Bazel workspace status command in order to ensure that the version placeholder # will be replaced with the proper version name when building the release output. -versionName=$(node tools/bazel_stamp_vars.js | grep -e "BUILD_SCM_VERSION" | cut -d " " -f2) +versionName=$(yarn -s ng-dev release build-env-stamp | grep -e "BUILD_SCM_VERSION" | cut -d " " -f2) if [[ ! ${versionName} =~ ^[0-9]+\.[0-9]+\.[0-9]+(-(rc|next).[0-9]+)?$ ]]; then echo "ERROR: The release will currently have the following version: ${versionName}"