From 0d2b3f328c18cf34f648ea6343470174b7f2a95a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 25 Mar 2025 22:31:51 -0700 Subject: [PATCH 1/4] Add new release publisher yaml --- azure-pipelines.release-publish.yml | 115 ++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 azure-pipelines.release-publish.yml diff --git a/azure-pipelines.release-publish.yml b/azure-pipelines.release-publish.yml new file mode 100644 index 0000000000000..a687ee2b1c1c5 --- /dev/null +++ b/azure-pipelines.release-publish.yml @@ -0,0 +1,115 @@ +trigger: none + +variables: + - name: _REMINDER + value: Review & undraft the release at https://github.com/microsoft/TypeScript/releases once it appears! + - name: PUBLISH_TAG + value: dev + - name: RELEASE_TITLE_NAME + value: 0.0.0 Test + - name: TAG_NAME + value: v0.0.0-SetMe + +resources: + pipelines: + - pipeline: 'tgz' + project: 'TypeScript' + source: 'Release\TypeScript Release' + repositories: + - repository: 1esPipelines + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + +extends: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + pool: + name: TypeScript-AzurePipelines-EO + image: 1ESPT-Mariner2.0 + os: linux + + sdl: + sourceAnalysisPool: + name: TypeScript-AzurePipelines-EO + image: 1ESPT-Windows2022 + os: windows + + stages: + - stage: Stage_1 + displayName: Publish tarball + jobs: + - job: Job_1 + displayName: Agent job + condition: succeeded() + timeoutInMinutes: 0 + templateContext: + inputs: + - input: pipelineArtifact + pipeline: 'tgz' + artifactName: 'tgz' + targetPath: '$(Pipeline.Workspace)/tgz' + - input: pipelineArtifact + displayName: 'Download Pipeline Artifact' + project: cf7ac146-d525-443c-b23c-0d58337efebc + definition: 20 + artifactName: tgz + itemPattern: '**/typescript-*.tgz' + steps: + - task: CmdLine@2 + displayName: Rename versioned drop to typescript.tgz + inputs: + script: |- + pushd $(System.ArtifactsDirectory) + ls -lhR + mv typescript-*.tgz typescript.tgz + - task: Npm@1 + displayName: npm publish tarball + inputs: + command: custom + workingDir: $(System.ArtifactsDirectory) + verbose: false + customCommand: publish $(System.ArtifactsDirectory)/typescript.tgz --tag $(PUBLISH_TAG) + customEndpoint: Typescript NPM + publishEndpoint: Typescript NPM + + - stage: Stage_2 + displayName: Publish git tag + dependsOn: Stage_1 + jobs: + - job: Job_1 + displayName: Agent job + condition: succeeded() + timeoutInMinutes: 0 + templateContext: + type: releaseJob + isProduction: true + inputs: + - input: pipelineArtifact + pipeline: 'tgz' + artifactName: 'tgz' + targetPath: '$(Pipeline.Workspace)/tgz' + steps: + - task: GitHubRelease@1 + displayName: GitHub release (create) + inputs: + gitHubConnection: typescript-bot connection + repositoryName: microsoft/TypeScript + tagSource: userSpecifiedTag + tag: $(TAG_NAME) + title: TypeScript $(RELEASE_TITLE_NAME) + releaseNotesSource: inline + releaseNotes: |- + 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) + * [Visual Studio 2017]() ([Select new version in project options](https://github.com/microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017)) + * [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild) + Special thanks to all our contributors in this release: + * [Empty list] + assets: $(System.ArtifactsDirectory)/**/typescript-*.tgz + isDraft: true + addChangeLog: false From eefd17bc1bed5d1b2fb0075a6b3c58e0dc0d3298 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 28 Mar 2025 13:47:57 -0700 Subject: [PATCH 2/4] Update azure-pipelines.release-publish.yml Co-authored-by: Daniel Rosenwasser --- azure-pipelines.release-publish.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/azure-pipelines.release-publish.yml b/azure-pipelines.release-publish.yml index a687ee2b1c1c5..535d98581b15d 100644 --- a/azure-pipelines.release-publish.yml +++ b/azure-pipelines.release-publish.yml @@ -106,10 +106,6 @@ extends: * [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) - * [Visual Studio 2017]() ([Select new version in project options](https://github.com/microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017)) - * [NuGet package](https://www.nuget.org/packages/Microsoft.TypeScript.MSBuild) - Special thanks to all our contributors in this release: - * [Empty list] assets: $(System.ArtifactsDirectory)/**/typescript-*.tgz isDraft: true addChangeLog: false From 2e4e1fdce8e5895669710d1ffbd4e8341fd04e67 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:01:38 -0700 Subject: [PATCH 3/4] Corrections --- azure-pipelines.release-publish.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/azure-pipelines.release-publish.yml b/azure-pipelines.release-publish.yml index 535d98581b15d..122b3c7d1300a 100644 --- a/azure-pipelines.release-publish.yml +++ b/azure-pipelines.release-publish.yml @@ -44,32 +44,29 @@ extends: condition: succeeded() timeoutInMinutes: 0 templateContext: + templateContext: + type: releaseJob + isProduction: true inputs: - input: pipelineArtifact pipeline: 'tgz' artifactName: 'tgz' targetPath: '$(Pipeline.Workspace)/tgz' - - input: pipelineArtifact - displayName: 'Download Pipeline Artifact' - project: cf7ac146-d525-443c-b23c-0d58337efebc - definition: 20 - artifactName: tgz - itemPattern: '**/typescript-*.tgz' steps: - task: CmdLine@2 displayName: Rename versioned drop to typescript.tgz inputs: - script: |- - pushd $(System.ArtifactsDirectory) + script: | + pushd $(Pipeline.Workspace)/tgz ls -lhR mv typescript-*.tgz typescript.tgz - task: Npm@1 displayName: npm publish tarball inputs: command: custom - workingDir: $(System.ArtifactsDirectory) + workingDir: $(Pipeline.Workspace)/tgz verbose: false - customCommand: publish $(System.ArtifactsDirectory)/typescript.tgz --tag $(PUBLISH_TAG) + customCommand: publish $(Pipeline.Workspace)/tgz/typescript.tgz --tag $(PUBLISH_TAG) customEndpoint: Typescript NPM publishEndpoint: Typescript NPM @@ -99,13 +96,13 @@ extends: tag: $(TAG_NAME) title: TypeScript $(RELEASE_TITLE_NAME) releaseNotesSource: inline - releaseNotes: |- + releaseNotesInline: | For release notes, check out the [release announcement](). - For new features, check out the [What's new in TypeScript $(TAG_NAME)](). + 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: $(System.ArtifactsDirectory)/**/typescript-*.tgz + assets: $(Pipeline.Workspace)/tgz/**/typescript-*.tgz isDraft: true addChangeLog: false From 33d447ab5145933b51879add9f0ddbd900b6433d Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 28 Mar 2025 16:20:20 -0700 Subject: [PATCH 4/4] no pr --- azure-pipelines.release-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.release-publish.yml b/azure-pipelines.release-publish.yml index 122b3c7d1300a..ba5b4e2eccad3 100644 --- a/azure-pipelines.release-publish.yml +++ b/azure-pipelines.release-publish.yml @@ -1,4 +1,5 @@ trigger: none +pr: none variables: - name: _REMINDER