diff --git a/build/azure-pipelines/publish-types/publish-types.yml b/build/azure-pipelines/publish-types/publish-types.yml index 200b790f8d6..7af16fe6b8a 100644 --- a/build/azure-pipelines/publish-types/publish-types.yml +++ b/build/azure-pipelines/publish-types/publish-types.yml @@ -2,7 +2,7 @@ trigger: branches: - include: ['octref/devops-publish-types', 'refs/tags/*'] + include: ['refs/tags/*'] steps: - task: NodeTool@0 diff --git a/build/azure-pipelines/publish-types/update-types.ts b/build/azure-pipelines/publish-types/update-types.ts index 7e7aab4fa20..a5ef449b77b 100644 --- a/build/azure-pipelines/publish-types/update-types.ts +++ b/build/azure-pipelines/publish-types/update-types.ts @@ -39,12 +39,12 @@ function updateDTSFile(outPath: string, tag: string) { function getNewFileContent(content: string, tag: string) { const oldheader = [ `/*---------------------------------------------------------------------------------------------`, - `* Copyright (c) Microsoft Corporation. All rights reserved.`, - `* Licensed under the MIT License. See License.txt in the project root for license information.`, - `*--------------------------------------------------------------------------------------------*/` + ` * Copyright (c) Microsoft Corporation. All rights reserved.`, + ` * Licensed under the MIT License. See License.txt in the project root for license information.`, + ` *--------------------------------------------------------------------------------------------*/` ].join('\n'); - return getNewFileHeader(tag) + content.slice(oldheader.length + 2); + return getNewFileHeader(tag) + content.slice(oldheader.length); } function getNewFileHeader(tag: string) {