Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl authored Jan 15, 2025
1 parent 8ff341c commit 24b72e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ stages:
name: SetRLCCommonDevVersion
workingDirectory: $(Build.SourcesDirectory)/packages/rlc-common
- script: |
DEV_VERSION=$(node -p -e "require('../rlc-common/package.json').version.replace(/-beta.*/g, '') + '-alpha'").$(Build.BuildNumber)
jq --arg $DEV_VERSION "$DEV_VERSION" '.dependencies["@azure-tools/rlc-common"] = $DEV_VERSION' package.json > temp.json
export DEV_VERSION=$(node -p -e "require('../rlc-common/package.json').version.replace(/-beta.*/g, '') + '-alpha'").$(Build.BuildNumber)
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')))
name: UpdateRLCCommonDevVersionInTypesSpecTs
Expand Down

0 comments on commit 24b72e3

Please sign in to comment.