Skip to content

Commit 9531aba

Browse files
authored
chore: spread versions history to docs [skip-bc] (#4195)
1 parent c9fb5fd commit 9531aba

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

scripts/ci/codegen/pushToRepository.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ async function handleSpecFiles(spec: SpecsToPush, tempGitDir: string): Promise<v
2929
await run(`cp ${toAbsolutePath('specs/bundled/*.doc.yml')} ${pathToSpecs}`);
3030
await run(`cp ${toAbsolutePath('config/clients.config.json')} ${pathToSpecs}`);
3131
await run(`cp ${toAbsolutePath('docs/bundled/*.json')} ${pathToSpecs}`);
32+
await run(`cp ${toAbsolutePath('docs/versions-history-with-sla-and-support-policy.json')} ${pathToSpecs}`);
3233
// adblock extensions ban words like `analytics` so we use a different file name just so the doc dans render it
3334
await run(`mv ${pathToSpecs}/analytics.doc.yml ${pathToSpecs}/searchstats.doc.yml`);
3435
}

scripts/release/versionsHistory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,8 @@ export async function generateVersionsHistory(versions: Versions): Promise<void>
194194
return acc;
195195
}, {});
196196

197-
await fsp.writeFile(toAbsolutePath('config/versions.history.json'), JSON.stringify(sortedVersionsHistory, null, 2));
197+
await fsp.writeFile(
198+
toAbsolutePath('docs/versions-history-with-sla-and-support-policy.json'),
199+
JSON.stringify(sortedVersionsHistory, null, 2),
200+
);
198201
}

0 commit comments

Comments
 (0)