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