Keep body of last commit message in deploy.mjs - 2.16 🚀

This commit is contained in:
Brandon Presley 2024-02-09 13:18:19 +13:00
parent 89b62d69aa
commit c9d297e769
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
const git = simpleGit();
await git.add([packageJsonPath, buildFilePath]);
await git.log(['-1']).then(log => {
const lastCommitMessage = log.latest.message;
const newCommitMessage = lastCommitMessage + ` - ${versionName} 🚀`;
const newTitle = `${log.latest.message} - ${versionName} 🚀`;
const newCommitMessage = [newTitle, log.latest.body].join('\n');
return git.commit(newCommitMessage, [], ['--amend']);
}).then(() => {
return git.addTag(versionCode.toString());