microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b1fe690802cd387ef30cf17a46019161f71ac741

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

pipelines/include-update-package-version.yml

22lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4# include-update-package-version
5
6parameters:
7 - name: packageFolder
8 type: string
9 - name: prerelease
10 type: string
11
12steps:
13 - bash: |
14 current_version=$(node -p "require('./package.json').version")
15 new_version="${current_version}-${{ parameters.prerelease }}"
16 echo "##vso[task.setvariable variable=package_version]$new_version"
17
18 pnpm -r exec $(Build.SourcesDirectory)/pipelines/scripts/update-package-version.sh "$new_version"
19 echo "Updated package.json to version $new_version"
20 git diff
21 displayName: "Update Package Version"
22 workingDirectory: ${{ parameters.packageFolder }}
23