mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
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:
parent
831c6b4dbb
commit
b4737b60ed
2 changed files with 28 additions and 0 deletions
|
|
@ -54,3 +54,17 @@ extends:
|
||||||
tag: next
|
tag: next
|
||||||
publishPackage: true
|
publishPackage: true
|
||||||
publishRequiresApproval: false
|
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)
|
||||||
|
|
|
||||||
|
|
@ -56,3 +56,17 @@ extends:
|
||||||
tag: latest
|
tag: latest
|
||||||
publishPackage: ${{ parameters.publishMonacoEditor }}
|
publishPackage: ${{ parameters.publishMonacoEditor }}
|
||||||
publishRequiresApproval: false
|
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue