Update release-npm to use 1es templates (#143)

This commit is contained in:
Brandon Waterloo [MSFT] 2024-03-28 15:02:37 -04:00 коммит произвёл GitHub
Родитель 41cdb5f247
Коммит 0a1bcd5e58
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 10 добавлений и 31 удалений

Просмотреть файл

@ -1,28 +0,0 @@
# Trigger the build whenever `main` or `rel/*` is updated
trigger:
- main
- rel/*
pr: none # Disable PR trigger
# Scheduled nightly build
schedules:
- cron: "0 0 * * *"
displayName: Nightly scheduled build
always: false # Don't rebuild if there haven't been changes
branches:
include:
- main
# Grab the base templates from https://github.com/microsoft/vscode-azuretools/tree/main/azure-pipelines
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-azuretools
ref: main
endpoint: GitHub
# Use those templates
extends:
template: azure-pipelines/jobs.yml@templates

Просмотреть файл

@ -7,6 +7,10 @@ parameters:
displayName: Package to Publish
type: string
default: microsoft-compose-language-service
- name: BranchToPublish
displayName: Branch to Publish
type: string
default: "refs/heads/main"
# Grab the base templates from https://github.com/microsoft/vscode-azuretools/tree/main/azure-pipelines
resources:
@ -15,11 +19,14 @@ resources:
type: github
name: microsoft/vscode-azuretools
ref: main
endpoint: GitHub
endpoint: GitHub-AzureTools
# Use those base templates
extends:
template: azure-pipelines/release-npm.yml@templates
template: azure-pipelines/1es-release-npm.yml@templates
parameters:
PackageToPublish: ${{ parameters.PackageToPublish }}
PipelineDefinition: 38
BranchToPublish: ${{ parameters.BranchToPublish }}
PipelineDefinition: 20290
OwnerAlias: "devinb"
ApproverAlias: "bwater"