From 797399d8609f5f6dbd1bdd2ca42e5d26a4fb15ea Mon Sep 17 00:00:00 2001 From: Leo Ribeiro Date: Tue, 7 May 2024 16:07:15 -0500 Subject: [PATCH] Fix release 1d59f714 --- scripts/changesets-api-release-check.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/changesets-api-release-check.sh b/scripts/changesets-api-release-check.sh index 367477680..6265b8e69 100755 --- a/scripts/changesets-api-release-check.sh +++ b/scripts/changesets-api-release-check.sh @@ -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