@@ -3,17 +3,25 @@ pr: none
33
44parameters :
55 - name : _REMINDER
6- default : Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
6+ displayName : Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
7+ type : boolean
8+ default : true
79 - name : PUBLISH_TAG
10+ displayName : npm publish tag
811 default : dev
12+ values :
13+ - dev
14+ - beta
15+ - rc
16+ - latest
917 - name : RELEASE_TITLE_NAME
18+ displayName : GitHub release title name
1019 default : 0.0.0 Test
1120 - name : TAG_NAME
21+ displayName : Git tag name
1222 default : v0.0.0-SetMe
1323
1424variables :
15- - name : _REMINDER
16- value : ${{ parameters._REMINDER }}
1725 - name : PUBLISH_TAG
1826 value : ${{ parameters.PUBLISH_TAG }}
1927 - name : RELEASE_TITLE_NAME
@@ -47,11 +55,11 @@ extends:
4755 os : windows
4856
4957 stages :
50- - stage : Stage_1
51- displayName : Publish tarball
58+ - stage : Publish
59+ displayName : Publish
5260 jobs :
53- - job : Job_1
54- displayName : Agent job
61+ - job : tarball
62+ displayName : Publish tarball
5563 condition : succeeded()
5664 timeoutInMinutes : 0
5765 templateContext :
@@ -66,29 +74,26 @@ extends:
6674 steps :
6775 - checkout : none
6876 - task : CmdLine@2
69- displayName : Rename versioned drop to typescript.tgz
77+ displayName : Copy versioned drop to typescript.tgz
7078 inputs :
7179 script : |
7280 pushd $(Pipeline.Workspace)/tgz
7381 ls -lhR
74- mv typescript-*.tgz typescript.tgz
82+ cp typescript-*.tgz typescript.tgz
7583 - task : Npm@1
7684 displayName : npm publish tarball
7785 inputs :
7886 command : custom
7987 workingDir : $(Pipeline.Workspace)/tgz
8088 verbose : false
8189 customCommand : publish $(Pipeline.Workspace)/tgz/typescript.tgz --tag $(PUBLISH_TAG)
82- # This must match the service connection.
90+ # This must match the service connection name .
8391 customEndpoint : Typescript NPM
8492 publishEndpoint : Typescript NPM
8593
86- - stage : Stage_2
87- displayName : Publish git tag
88- dependsOn : Stage_1
89- jobs :
90- - job : Job_1
91- displayName : Agent job
94+ - job : github
95+ displayName : Create github release
96+ dependsOn : tarball
9297 condition : succeeded()
9398 timeoutInMinutes : 0
9499 templateContext :
@@ -104,20 +109,22 @@ extends:
104109 - task : GitHubRelease@1
105110 displayName : GitHub release (create)
106111 inputs :
107- # This must match the service connection.
112+ # This must match the service connection name .
108113 gitHubConnection : typescript-bot connection
109114 repositoryName : microsoft/TypeScript
110115 tagSource : userSpecifiedTag
111116 tag : $(TAG_NAME)
112117 title : TypeScript $(RELEASE_TITLE_NAME)
113118 releaseNotesSource : inline
114119 releaseNotesInline : |
120+ <!---
115121 For release notes, check out the [release announcement]().
116122 For new features, check out the [What's new in TypeScript $(TAG_NAME)]().
117123 For the complete list of fixed issues, check out the
118124 * [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+).
119125 Downloads are available on:
120126 * [npm](https://www.npmjs.com/package/typescript)
127+ -->
121128 assets : $(Pipeline.Workspace)/tgz/**/typescript-*.tgz
122- isDraft : true
129+ isDraft : ${{ not(eq(parameters.PUBLISH_TAG, 'latest')) }}
123130 addChangeLog : false
0 commit comments