microsoft/vscode-loc
Publicmirrored fromhttps://github.com/microsoft/vscode-locAvailable
build/release.yml
40lines · modecode
| 1 | name: $(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: none |
| 10 | pr: none |
| 11 | |
| 12 | schedules: |
| 13 | # Run every Wednesday |
| 14 | - cron: '0 9 * * Wed' |
| 15 | displayName: Weekly Release Schedule |
| 16 | always: true |
| 17 | branches: |
| 18 | include: |
| 19 | - main |
| 20 | |
| 21 | resources: |
| 22 | repositories: |
| 23 | - repository: templates |
| 24 | type: github |
| 25 | name: microsoft/vscode-engineering |
| 26 | ref: main |
| 27 | endpoint: Monaco |
| 28 | |
| 29 | extends: |
| 30 | template: azure-pipelines/extension/pre-release.yml@templates |
| 31 | parameters: |
| 32 | usePreReleaseChannel: false |
| 33 | workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack) |
| 34 | buildSteps: |
| 35 | - pwsh: | |
| 36 | [version]$version = Get-Content -Raw ./package.json | ConvertFrom-Json | Select-Object -ExpandProperty version |
| 37 | $patch = Get-Date -Format yyyyMMddHH |
| 38 | npm version "$($version.Major).$($version.Minor).$patch" |
| 39 | displayName: Update version |
| 40 | workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack) |
| 41 | |