Skip to content

Commit 0d2b3f3

Browse files
committed
Add new release publisher yaml
1 parent 29e6d66 commit 0d2b3f3

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
trigger: none
2+
3+
variables:
4+
- name: _REMINDER
5+
value: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears!
6+
- name: PUBLISH_TAG
7+
value: dev
8+
- name: RELEASE_TITLE_NAME
9+
value: 0.0.0 Test
10+
- name: TAG_NAME
11+
value: v0.0.0-SetMe
12+
13+
resources:
14+
pipelines:
15+
- pipeline: 'tgz'
16+
project: 'TypeScript'
17+
source: 'Release\TypeScript Release'
18+
repositories:
19+
- repository: 1esPipelines
20+
type: git
21+
name: 1ESPipelineTemplates/1ESPipelineTemplates
22+
ref: refs/tags/release
23+
24+
extends:
25+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
26+
parameters:
27+
pool:
28+
name: TypeScript-AzurePipelines-EO
29+
image: 1ESPT-Mariner2.0
30+
os: linux
31+
32+
sdl:
33+
sourceAnalysisPool:
34+
name: TypeScript-AzurePipelines-EO
35+
image: 1ESPT-Windows2022
36+
os: windows
37+
38+
stages:
39+
- stage: Stage_1
40+
displayName: Publish tarball
41+
jobs:
42+
- job: Job_1
43+
displayName: Agent job
44+
condition: succeeded()
45+
timeoutInMinutes: 0
46+
templateContext:
47+
inputs:
48+
- input: pipelineArtifact
49+
pipeline: 'tgz'
50+
artifactName: 'tgz'
51+
targetPath: '$(Pipeline.Workspace)/tgz'
52+
- input: pipelineArtifact
53+
displayName: 'Download Pipeline Artifact'
54+
project: cf7ac146-d525-443c-b23c-0d58337efebc
55+
definition: 20
56+
artifactName: tgz
57+
itemPattern: '**/typescript-*.tgz'
58+
steps:
59+
- task: CmdLine@2
60+
displayName: Rename versioned drop to typescript.tgz
61+
inputs:
62+
script: |-
63+
pushd $(System.ArtifactsDirectory)
64+
ls -lhR
65+
mv typescript-*.tgz typescript.tgz
66+
- task: Npm@1
67+
displayName: npm publish tarball
68+
inputs:
69+
command: custom
70+
workingDir: $(System.ArtifactsDirectory)
71+
verbose: false
72+
customCommand: publish $(System.ArtifactsDirectory)/typescript.tgz --tag $(PUBLISH_TAG)
73+
customEndpoint: Typescript NPM
74+
publishEndpoint: Typescript NPM
75+
76+
- stage: Stage_2
77+
displayName: Publish git tag
78+
dependsOn: Stage_1
79+
jobs:
80+
- job: Job_1
81+
displayName: Agent job
82+
condition: succeeded()
83+
timeoutInMinutes: 0
84+
templateContext:
85+
type: releaseJob
86+
isProduction: true
87+
inputs:
88+
- input: pipelineArtifact
89+
pipeline: 'tgz'
90+
artifactName: 'tgz'
91+
targetPath: '$(Pipeline.Workspace)/tgz'
92+
steps:
93+
- task: GitHubRelease@1
94+
displayName: GitHub release (create)
95+
inputs:
96+
gitHubConnection: typescript-bot connection
97+
repositoryName: microsoft/TypeScript
98+
tagSource: userSpecifiedTag
99+
tag: $(TAG_NAME)
100+
title: TypeScript $(RELEASE_TITLE_NAME)
101+
releaseNotesSource: inline
102+
releaseNotes: |-
103+
For release notes, check out the [release announcement]().
104+
For new features, check out the [What's new in TypeScript $(TAG_NAME)]().
105+
For the complete list of fixed issues, check out the
106+
* [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+).
107+
Downloads are available on:
108+
* [npm](https://www.npmjs.com/package/typescript)
109+
* [Visual Studio 2017]() ([Select new version in project options](https://github.com/microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017))
110+
* [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild)
111+
Special thanks to all our contributors in this release:
112+
* [Empty list]
113+
assets: $(System.ArtifactsDirectory)/**/typescript-*.tgz
114+
isDraft: true
115+
addChangeLog: false

0 commit comments

Comments
 (0)