Convert release publishing inputs into parameters (#61523)

This commit is contained in:
Jake Bailey 2025-04-04 12:22:18 -07:00 committed by GitHub
parent ba663f6ac2
commit 83dc0bb2ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,25 @@
trigger: none
pr: none
parameters:
- name: _REMINDER
default: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
- name: PUBLISH_TAG
default: dev
- name: RELEASE_TITLE_NAME
default: 0.0.0 Test
- name: TAG_NAME
default: v0.0.0-SetMe
variables:
- name: _REMINDER
value: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
value: ${{ parameters._REMINDER }}
- name: PUBLISH_TAG
value: dev
value: ${{ parameters.PUBLISH_TAG }}
- name: RELEASE_TITLE_NAME
value: 0.0.0 Test
value: ${{ parameters.RELEASE_TITLE_NAME }}
- name: TAG_NAME
value: v0.0.0-SetMe
value: ${{ parameters.TAG_NAME }}
resources:
pipelines:
@ -54,6 +64,7 @@ extends:
artifactName: 'tgz'
targetPath: '$(Pipeline.Workspace)/tgz'
steps:
- checkout: none
- task: CmdLine@2
displayName: Rename versioned drop to typescript.tgz
inputs:
@ -68,6 +79,7 @@ extends:
workingDir: $(Pipeline.Workspace)/tgz
verbose: false
customCommand: publish $(Pipeline.Workspace)/tgz/typescript.tgz --tag $(PUBLISH_TAG)
# This must match the service connection.
customEndpoint: Typescript NPM
publishEndpoint: Typescript NPM
@ -88,9 +100,11 @@ extends:
artifactName: 'tgz'
targetPath: '$(Pipeline.Workspace)/tgz'
steps:
- checkout: none
- task: GitHubRelease@1
displayName: GitHub release (create)
inputs:
# This must match the service connection.
gitHubConnection: typescript-bot connection
repositoryName: microsoft/TypeScript
tagSource: userSpecifiedTag
@ -101,7 +115,7 @@ extends:
For release notes, check out the [release announcement]().
For new features, check out the [What's new in TypeScript $(TAG_NAME)]().
For the complete list of fixed issues, check out the
* [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+).
* [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+).
Downloads are available on:
* [npm](https://www.npmjs.com/package/typescript)
assets: $(Pipeline.Workspace)/tgz/**/typescript-*.tgz