microsoft/vscode-loc

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
004e077059a9db3113398e923022435852b2f1cd

Branches

Tags

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

Clone

HTTPS

Download ZIP

build/release.yml

40lines · modepreview

name: $(Date:yyyyMMdd)$(Rev:.r)

#*************
#* IMPORTANT *
#*************
# This pipeline needs a variable called `languagePack` set to the name of the directory that
# contains the language pack we want to work with. Set this via the Azure Pipelines UI.

trigger: none
pr: none

schedules:
  # Run every Wednesday
  - cron: '0 9 * * Wed'
    displayName: Weekly Release Schedule
    always: true
    branches:
      include:
        - main

resources:
  repositories:
    - repository: templates
      type: github
      name: microsoft/vscode-engineering
      ref: main
      endpoint: Monaco

extends:
  template: azure-pipelines/extension/pre-release.yml@templates
  parameters:
    usePreReleaseChannel: false
    workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack)
    buildSteps:
      - pwsh: |
          [version]$version = Get-Content -Raw ./package.json | ConvertFrom-Json | Select-Object -ExpandProperty version
          $patch = Get-Date -Format yyyyMMddHH
          npm version "$($version.Major).$($version.Minor).$patch"
        displayName: Update version
        workingDirectory: $(Build.SourcesDirectory)/i18n/$(languagePack)