Keep body of last commit message in deploy.mjs - 2.16 🚀
This commit is contained in:
parent
89b62d69aa
commit
c9d297e769
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user