This commit is contained in:
Wei Dong 2022-01-13 15:32:01 +08:00 коммит произвёл GitHub
Родитель c6e3ce4618
Коммит 26f76d879a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "@azure-tools/js-sdk-release-tools",
"version": "1.0.8",
"version": "1.0.9",
"description": "",
"scripts": {
"start": "node dist/changelogToolCli.js",

Просмотреть файл

@ -45,11 +45,14 @@ export function modifyOrGenerateCiYaml(azureSDKForJSRepoRoot: string, changedPac
changed = addExcludeBranch(ciYaml?.pr?.branches) || changed;
changed = addArtifact(ciYaml?.extends?.parameters?.Artifacts, name, safeName) || changed;
if (changed) {
fs.writeFileSync(ciYamlPath, yaml.stringify(ciYaml), {encoding: 'utf-8'});
fs.writeFileSync(ciYamlPath, `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
${yaml.stringify(ciYaml)}`, {encoding: 'utf-8'});
}
} else {
relativeRpFolderPath = relativeRpFolderPath.replace(/\\/g, '/');
const ciYaml = `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
branches:
include: