From 35b2caddadb223029d0a132124fa3befb3e1c636 Mon Sep 17 00:00:00 2001 From: Ketan Reddy Date: Tue, 3 Dec 2024 18:07:34 -0800 Subject: [PATCH] push up changes to changelog --- scripts/next-changelogs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/next-changelogs.js b/scripts/next-changelogs.js index 89ee1aa44..ceaf9bb07 100644 --- a/scripts/next-changelogs.js +++ b/scripts/next-changelogs.js @@ -22,9 +22,12 @@ class NextChangelogsPlugin { auto.hooks.next.tapPromise(this.name, async ({ dryRun }) => { const latestRelease = getLatestReleaseTag(); if (dryRun) { - auto.logger.log.info(`Dry run: making changelog from last release: ${latestRelease}`); + auto.logger.log.info( + `Dry run: making changelog from last release: ${latestRelease}`, + ); } else { await auto.changelog({ from: latestRelease }); + await await execPromise("git", ["push", auto.remote, auto.baseBranch]); } }); }