diff --git a/internal/scripts/publish-new.ts b/internal/scripts/publish-new.ts index 5097c108210b..87452b302bcd 100644 --- a/internal/scripts/publish-new.ts +++ b/internal/scripts/publish-new.ts @@ -115,7 +115,7 @@ async function main() { await generateAutoRcFile() await auto.loadConfig() - const preTagRef = await exec('git', ['rev-parse', 'HEAD']) + const preTagRef = (await exec('git', ['rev-parse', 'HEAD'])).trim() // this creates a new commit await auto.changelog({