build: update cherrypick changelog to stash

there are often some formatting/newline changes caused by other steps. just stash anything
This commit is contained in:
Andrew Scott
2026-01-13 11:09:06 -08:00
committed by Jessica Janiuk
parent b95753eb7d
commit 029685bd93
@@ -481,6 +481,7 @@ async function publishExtension(): Promise<void> {
async function cherryPickChangelog(changelog: string, newVersion: string): Promise<void> {
console.log(chalk.blue('Cherry-picking changelog to main...'));
await exec(`git stash`);
await exec(`git fetch ${angularRepoRemote} main`);
const cherryPickBranch = `vscode-changelog-cherry-pick${newVersion}`;
await exec(`git branch -D ${cherryPickBranch}`).catch(() => {});