From 618fbebcef875290402e279b575d3939ecb78bed Mon Sep 17 00:00:00 2001 From: Wanpeng Li Date: Tue, 14 Jan 2025 12:05:09 +0800 Subject: [PATCH] Update ci.yml --- .scripts/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.scripts/ci.yml b/.scripts/ci.yml index f52cdd04b9..38511a24da 100644 --- a/.scripts/ci.yml +++ b/.scripts/ci.yml @@ -16,12 +16,12 @@ parameters: default: "Windows-latest" variables: + SetDevVersion: true AUTOREST_TESTSERVER_COVERAGE_DIRECTORY: "$(Build.SourcesDirectory)/packages/autorest.typescript/coverage/" TypeSpec_TESTSERVER_COVERAGE_RLC_AZURE_REPORT: "$(Build.SourcesDirectory)/packages/typespec-ts/coverage/spector-coverage-typescript-rlc-azure.json" TypeSpec_TESTSERVER_COVERAGE_RLC_STANDARD_REPORT: "$(Build.SourcesDirectory)/packages/typespec-ts/coverage/spector-coverage-typescript-rlc-standard.json" TypeSpec_TESTSERVER_COVERAGE_MODULAR_AZURE_REPORT: "$(Build.SourcesDirectory)/packages/typespec-ts/coverage/spector-coverage-typescript-modular-azure.json" TypeSpec_TESTSERVER_COVERAGE_MODULAR_STANDARD_REPORT: "$(Build.SourcesDirectory)/packages/typespec-ts/coverage/spector-coverage-typescript-modular-standard.json" - pool: vmImage: ubuntu-20.04 @@ -33,7 +33,6 @@ stages: - template: build.yml - script: | export MAIN_VERSION=$(node -p -e "require('./package.json').version") - echo "main version debug: $MAIN_VERSION" echo "##vso[task.setvariable variable=MAIN_VERSION;isOutput=true;]MAIN_VERSION" name: SetAutorestTypescriptMainVersion workingDirectory: $(Build.SourcesDirectory)/packages/autorest.typescript @@ -49,7 +48,6 @@ stages: workingDirectory: $(Build.SourcesDirectory)/packages/rlc-common - script: | export DEV_VERSION=$(node -p -e "require('./package.json').version.replace(/-beta.*/g, '') + '-alpha'").$(Build.BuildNumber) - echo "dev version: $DEV_VERSION" echo "##vso[task.setvariable variable=DEV_VERSION;isOutput=true;]$DEV_VERSION" npm version --no-git-tag-version $DEV_VERSION condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['SetDevVersion'], ''), eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal')))