Skip to content

Commit 69f66ae

Browse files
committed
fix: log commit error
1 parent 8c1684c commit 69f66ae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/publish.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,13 @@ async function run() {
583583
console.info(` Github release created.`)
584584

585585
console.info(`Committing changes...`)
586-
execSync("git add -A ")
587-
execSync(`git commit -m "${releaseCommitMsg(version)}"`)
586+
execSync('git add -A ')
587+
try {
588+
execSync(`git commit -m "${releaseCommitMsg(version)}"`)
589+
} catch (e) {
590+
console.error(e)
591+
}
592+
588593
console.info()
589594
console.info(` Committed Changes.`)
590595
console.info(`Pushing changes...`)

0 commit comments

Comments
 (0)