Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert release publishing inputs into parameters #61523

Merged
merged 5 commits into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions azure-pipelines.release-publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down