From 5cbc0aa83d1bb97437a63960aa94d8824799d52b Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Mon, 20 May 2019 16:23:26 -0700 Subject: [PATCH] Final fix --- build/azure-pipelines/publish-types/publish-types.yml | 2 +- build/azure-pipelines/publish-types/update-types.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) { -- GitLab