提交 5cbc0aa8 编写于 作者: P Pine Wu

Final fix

上级 2d59250e
......@@ -2,7 +2,7 @@
trigger:
branches:
include: ['octref/devops-publish-types', 'refs/tags/*']
include: ['refs/tags/*']
steps:
- task: NodeTool@0
......
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册