mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 09:24:19 -06:00
Improve release publisher pipeline (#61551)
This commit is contained in:
parent
d297037a83
commit
36f7fbaded
@ -3,17 +3,25 @@ pr: none
|
||||
|
||||
parameters:
|
||||
- name: _REMINDER
|
||||
default: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
|
||||
displayName: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
|
||||
type: boolean
|
||||
default: true
|
||||
- name: PUBLISH_TAG
|
||||
displayName: npm publish tag
|
||||
default: dev
|
||||
values:
|
||||
- dev
|
||||
- beta
|
||||
- rc
|
||||
- latest
|
||||
- name: RELEASE_TITLE_NAME
|
||||
displayName: GitHub release title name
|
||||
default: 0.0.0 Test
|
||||
- name: TAG_NAME
|
||||
displayName: Git tag name
|
||||
default: v0.0.0-SetMe
|
||||
|
||||
variables:
|
||||
- name: _REMINDER
|
||||
value: ${{ parameters._REMINDER }}
|
||||
- name: PUBLISH_TAG
|
||||
value: ${{ parameters.PUBLISH_TAG }}
|
||||
- name: RELEASE_TITLE_NAME
|
||||
@ -47,11 +55,11 @@ extends:
|
||||
os: windows
|
||||
|
||||
stages:
|
||||
- stage: Stage_1
|
||||
displayName: Publish tarball
|
||||
- stage: Publish
|
||||
displayName: Publish
|
||||
jobs:
|
||||
- job: Job_1
|
||||
displayName: Agent job
|
||||
- job: tarball
|
||||
displayName: Publish tarball
|
||||
condition: succeeded()
|
||||
timeoutInMinutes: 0
|
||||
templateContext:
|
||||
@ -66,12 +74,12 @@ extends:
|
||||
steps:
|
||||
- checkout: none
|
||||
- task: CmdLine@2
|
||||
displayName: Rename versioned drop to typescript.tgz
|
||||
displayName: Copy versioned drop to typescript.tgz
|
||||
inputs:
|
||||
script: |
|
||||
pushd $(Pipeline.Workspace)/tgz
|
||||
ls -lhR
|
||||
mv typescript-*.tgz typescript.tgz
|
||||
cp typescript-*.tgz typescript.tgz
|
||||
- task: Npm@1
|
||||
displayName: npm publish tarball
|
||||
inputs:
|
||||
@ -79,16 +87,13 @@ extends:
|
||||
workingDir: $(Pipeline.Workspace)/tgz
|
||||
verbose: false
|
||||
customCommand: publish $(Pipeline.Workspace)/tgz/typescript.tgz --tag $(PUBLISH_TAG)
|
||||
# This must match the service connection.
|
||||
# This must match the service connection name.
|
||||
customEndpoint: Typescript NPM
|
||||
publishEndpoint: Typescript NPM
|
||||
|
||||
- stage: Stage_2
|
||||
displayName: Publish git tag
|
||||
dependsOn: Stage_1
|
||||
jobs:
|
||||
- job: Job_1
|
||||
displayName: Agent job
|
||||
- job: github
|
||||
displayName: Create github release
|
||||
dependsOn: tarball
|
||||
condition: succeeded()
|
||||
timeoutInMinutes: 0
|
||||
templateContext:
|
||||
@ -104,7 +109,7 @@ extends:
|
||||
- task: GitHubRelease@1
|
||||
displayName: GitHub release (create)
|
||||
inputs:
|
||||
# This must match the service connection.
|
||||
# This must match the service connection name.
|
||||
gitHubConnection: typescript-bot connection
|
||||
repositoryName: microsoft/TypeScript
|
||||
tagSource: userSpecifiedTag
|
||||
@ -112,12 +117,14 @@ extends:
|
||||
title: TypeScript $(RELEASE_TITLE_NAME)
|
||||
releaseNotesSource: inline
|
||||
releaseNotesInline: |
|
||||
<!---
|
||||
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+).
|
||||
Downloads are available on:
|
||||
* [npm](https://www.npmjs.com/package/typescript)
|
||||
-->
|
||||
assets: $(Pipeline.Workspace)/tgz/**/typescript-*.tgz
|
||||
isDraft: true
|
||||
isDraft: ${{ not(eq(parameters.PUBLISH_TAG, 'latest')) }}
|
||||
addChangeLog: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user