Skip to content

Commit

Permalink
Update release.yaml (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakef authored Oct 2, 2024
1 parent 8e5a495 commit 9efb982
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .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 'bot@reactnative.dev'
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 All @@ -69,4 +73,4 @@ jobs:
npm publish --tag "$GITHUB_REF_NAME" "${args[@]}"
else
npm publish "${args[@]}"
if
fi

0 comments on commit 9efb982

Please sign in to comment.