Skip to content

Commit

Permalink
Fix release 1d59f71
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed May 7, 2024
1 parent cd5f696 commit 797399d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/changesets-api-release-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ if [[ -n $API_RELEASE_PR || $KICK_API_RELEASE == "true" ]]; then
echo "release_web5_api=$RELEASE_WEB5_API" >> $GITHUB_OUTPUT
exit 0
fi

if [[ $API_RELEASES_COUNT == $ALL_RELEASES_COUNT ]]; then
echo "Only @web5/api release detected, checking for API Release labeled PR or Kick trigger..."
if [[ -z $RELEASE_WEB5_API ]]; then
echo "No API Release labeled PR found and KICK_API_RELEASE is false, skipping the PR creation..."
# removes all the api changesets files to ensure a Version Packages PR is not created
find .changeset -type f -name "*.md" ! -name "README.md" -exec rm {} +
exit 0
fi
fi

0 comments on commit 797399d

Please sign in to comment.