Skip to content

Commit 28fe683

Browse files
fix(release): After 'git commit', then run 'git add' in case Prettier formatted them
1 parent b6705cd commit 28fe683

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

release.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ if (!readlineSync.keyInYN('Ready to publish?')) {
102102

103103
if (!yargs.argv.dryrun) {
104104
_exec(`git commit -m ${version} ${modifiedFiles.join(' ')}`);
105+
_exec(`git add ${modifiedFiles.join(' ')}`); // in case prettier reformatted these files
105106
}
106107

107108
if (!yargs.argv.dryrun) {

0 commit comments

Comments
 (0)