Engineering - Add tasks to create and push a tag with the version number (#3520)

* Engineering - Add tasks to create and push a tag with the version number

* Renames tag to follow v[VERSION] pattern

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
This commit is contained in:
Ladislau Szomoru 2023-01-31 14:27:15 +01:00 committed by GitHub
parent 831c6b4dbb
commit b4737b60ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -56,3 +56,17 @@ extends:
tag: latest
publishPackage: ${{ parameters.publishMonacoEditor }}
publishRequiresApproval: false
postPublishSteps:
- checkout: self
persistCredentials: true
- script: |
set -e
git config user.email "vscode@microsoft.com"
git config user.name "VSCode"
git tag -a v$(SetPackageSpec.PACKAGE_VERSION) -m v$(SetPackageSpec.PACKAGE_VERSION)
git push origin v$(SetPackageSpec.PACKAGE_VERSION)
workingDirectory: $(Build.SourcesDirectory)