Log the commit title in deploy.mjs
This commit is contained in:
parent
c9d297e769
commit
cf90b798ab
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user