Skip to content

Commit e5180d6

Browse files
authored
Update to use modernized NPM release pipeline (#253)
1 parent 30f7abf commit e5180d6

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.azure-pipelines/release-npm.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ pr: none # Disable PR trigger
33

44
# Choose a package to publish at the time of job creation
55
parameters:
6-
- name: PackageToPublish
6+
- name: packageToPublish
77
displayName: Package to Publish
88
type: string
99
values:
1010
- microsoft-vscode-container-client
1111
- microsoft-vscode-docker-registries
12-
- name: BranchToPublish
13-
displayName: Branch to Publish
12+
- name: publishVersion
13+
displayName: Publish Version
1414
type: string
15-
default: "refs/heads/main"
15+
- name: dryRun
16+
displayName: Dry Run
17+
type: boolean
18+
default: false
1619

1720
# Grab the base templates from https://github.com/microsoft/vscode-azuretools/tree/main/azure-pipelines
1821
resources:
@@ -22,13 +25,16 @@ resources:
2225
name: microsoft/vscode-azuretools
2326
ref: main
2427
endpoint: GitHub-AzureTools
28+
pipelines:
29+
- pipeline: build # This must be "build"
30+
source: \Azure Tools\VSCode\Packages\vscode-docker-extensibility # name of the pipeline that produces the artifacts
2531

2632
# Use those base templates
2733
extends:
2834
template: azure-pipelines/1es-release-npm.yml@templates
2935
parameters:
30-
PackageToPublish: ${{ parameters.PackageToPublish }}
31-
BranchToPublish: ${{ parameters.BranchToPublish }}
32-
PipelineDefinition: 20415
36+
packageToPublish: ${{ parameters.packageToPublish }}
37+
publishVersion: ${{ parameters.publishVersion }}
38+
dryRun: ${{ parameters.dryRun }}
3339
OwnerAlias: "devinb"
3440
ApproverAlias: "bwater"

0 commit comments

Comments
 (0)