Log the commit title in deploy.mjs

This commit is contained in:
Brandon Presley 2024-02-09 13:20:02 +13:00
parent c9d297e769
commit cf90b798ab
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ const git = simpleGit();
await git.add([packageJsonPath, buildFilePath]);
await git.log(['-1']).then(log => {
const newTitle = `${log.latest.message} - ${versionName} 🚀`;
console.log(newTitle);
const newCommitMessage = [newTitle, log.latest.body].join('\n');
return git.commit(newCommitMessage, [], ['--amend']);
}).then(() => {