From 34316aadb059faeea20c8252b4e00de7e5ca3c73 Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Wed, 15 Jan 2025 16:46:18 +0800 Subject: [PATCH] Update ci.yml --- .scripts/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/ci.yml b/.scripts/ci.yml index 1b346bf155..dda9e55056 100644 --- a/.scripts/ci.yml +++ b/.scripts/ci.yml @@ -71,7 +71,7 @@ stages: name: SetRLCCommonDevVersion workingDirectory: $(Build.SourcesDirectory)/packages/rlc-common - script: | - export DEV_VERSION=$(node -p -e "require('../rlc-common/package.json')") + export DEV_VERSION=$(node -p -e "require('../rlc-common/package.json').version") jq --arg DEV_VERSION "$DEV_VERSION" '.dependencies["@azure-tools/rlc-common"] = $DEV_VERSION' package.json > temp.json mv temp.json package.json condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['SetDevVersion'], ''), eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal')))