Skip to content

Commit

Permalink
workflow: fix pre release sync errors
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Jan 3, 2019
1 parent 0547f6a commit 79eec26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ const release = async () => {

// buildEditorConfig()

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

const lernaArgs = [
Expand Down

0 comments on commit 79eec26

Please sign in to comment.