Skip to content

Commit 83dc0bb

Browse files
authored
Convert release publishing inputs into parameters (#61523)
1 parent ba663f6 commit 83dc0bb

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

azure-pipelines.release-publish.yml

+19-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
trigger: none
22
pr: none
33

4+
parameters:
5+
- name: _REMINDER
6+
default: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
7+
- name: PUBLISH_TAG
8+
default: dev
9+
- name: RELEASE_TITLE_NAME
10+
default: 0.0.0 Test
11+
- name: TAG_NAME
12+
default: v0.0.0-SetMe
13+
414
variables:
515
- name: _REMINDER
6-
value: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
16+
value: ${{ parameters._REMINDER }}
717
- name: PUBLISH_TAG
8-
value: dev
18+
value: ${{ parameters.PUBLISH_TAG }}
919
- name: RELEASE_TITLE_NAME
10-
value: 0.0.0 Test
20+
value: ${{ parameters.RELEASE_TITLE_NAME }}
1121
- name: TAG_NAME
12-
value: v0.0.0-SetMe
22+
value: ${{ parameters.TAG_NAME }}
1323

1424
resources:
1525
pipelines:
@@ -54,6 +64,7 @@ extends:
5464
artifactName: 'tgz'
5565
targetPath: '$(Pipeline.Workspace)/tgz'
5666
steps:
67+
- checkout: none
5768
- task: CmdLine@2
5869
displayName: Rename versioned drop to typescript.tgz
5970
inputs:
@@ -68,6 +79,7 @@ extends:
6879
workingDir: $(Pipeline.Workspace)/tgz
6980
verbose: false
7081
customCommand: publish $(Pipeline.Workspace)/tgz/typescript.tgz --tag $(PUBLISH_TAG)
82+
# This must match the service connection.
7183
customEndpoint: Typescript NPM
7284
publishEndpoint: Typescript NPM
7385

@@ -88,9 +100,11 @@ extends:
88100
artifactName: 'tgz'
89101
targetPath: '$(Pipeline.Workspace)/tgz'
90102
steps:
103+
- checkout: none
91104
- task: GitHubRelease@1
92105
displayName: GitHub release (create)
93106
inputs:
107+
# This must match the service connection.
94108
gitHubConnection: typescript-bot connection
95109
repositoryName: microsoft/TypeScript
96110
tagSource: userSpecifiedTag
@@ -101,7 +115,7 @@ extends:
101115
For release notes, check out the [release announcement]().
102116
For new features, check out the [What's new in TypeScript $(TAG_NAME)]().
103117
For the complete list of fixed issues, check out the
104-
* [fixed issues query for Typescript $(TAG_NAME)](https://github.com/microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
118+
* [fixed issues query for TypeScript $(TAG_NAME)](https://github.com/microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+milestone%3A%22TypeScript+3.3%22+is%3Aclosed+).
105119
Downloads are available on:
106120
* [npm](https://www.npmjs.com/package/typescript)
107121
assets: $(Pipeline.Workspace)/tgz/**/typescript-*.tgz

0 commit comments

Comments
 (0)