Skip to content

Commit

Permalink
Fix: continue attempting release nothing to commit
Browse files Browse the repository at this point in the history
This can happen if npm publish fails
  • Loading branch information
blakef committed Oct 2, 2024
1 parent 32324a4 commit fa7ebf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
fi
"${GIT[@]}" config --global user.name 'React Native Bot'
"${GIT[@]}" config --global user.email '[email protected]'
if [ -z "$("${GIT[@]}" status --porcelain)" ]; then
echo "No changes, a previous release might have failed at the publish step. Continue to retry."
exit 0
fi
"${GIT[@]}" commit -am "Bumping template to $VERSION"
"${GIT[@]}" push
"${GIT[@]}" tag $VERSION
Expand Down

0 comments on commit fa7ebf3

Please sign in to comment.