microsoft/vscode-loc

Public

mirrored fromhttps://github.com/microsoft/vscode-locAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b8cced8b2d505a9fc5b91c439aab0fd1601b4070

Branches

Tags

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

Clone

HTTPS

Download ZIP

build/release.yml

47lines · modecode

1name: $(Date:yyyyMMdd)$(Rev:.r)
2
3#*************
4#* IMPORTANT *
5#*************
6# This pipeline needs a variable called `languagePack` set to the name of the directory that
7# contains the language pack we want to work with. Set this via the Azure Pipelines UI.
8
9# Trigger a release when strings change in the main branch.
10trigger:
11 branches:
12 include:
13 - main
14 paths:
15 include:
16 - i18n
17
18pr: none
19
20resources:
21 repositories:
22 - repository: templates
23 type: github
24 name: microsoft/vscode-engineering
25 ref: main
26 endpoint: Monaco
27
28extends:
29 template: azure-pipelines/extension/pre-release.yml@templates
30 parameters:
31 publishExtension: true
32 useContinuousReleaseSignal: false
33 usePreReleaseChannel: false
34 ghCreateRelease: false
35 workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack)
36 buildSteps:
37 - pwsh: |
38 [version]$version = Get-Content -Raw ./package.json | ConvertFrom-Json | Select-Object -ExpandProperty version
39 $patch = Get-Date -Format yyyyMMddHH
40 npm version "$($version.Major).$($version.Minor).$patch"
41 displayName: Update version
42 workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack)
43
44 - pwsh: |
45 Join-Path $env:BUILD_SOURCESDIRECTORY LICENSE.md | Copy-Item -Destination .
46 displayName: Copy LICENSE.md file
47 workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack)
48