Update release-npm to use 1es templates (#143)
This commit is contained in:
Родитель
41cdb5f247
Коммит
0a1bcd5e58
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче