Skip to content

Commit 79eec26

Browse files
committed
workflow: fix pre release sync errors
1 parent 0547f6a commit 79eec26

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/release.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ const release = async () => {
8787

8888
// buildEditorConfig()
8989

90-
await execa('git', ['add', '-A'], { stdio: 'inherit' })
91-
await execa('git', ['commit', '-m', 'chore: pre release sync'], { stdio: 'inherit' })
90+
try {
91+
await execa('git', ['add', '-A'], { stdio: 'inherit' })
92+
await execa('git', ['commit', '-m', 'chore: pre release sync'], { stdio: 'inherit' })
93+
} catch (e) {
94+
// if it's a patch release, there may be no local deps to sync
95+
}
9296
}
9397

9498
const lernaArgs = [

0 commit comments

Comments
 (0)