Skip to content

Commit

Permalink
Remove unnecessary api release protection (#517)
Browse files Browse the repository at this point in the history
* Remove unnecessary api release protection

* Fix changeset check script

* Cleanup
  • Loading branch information
leordev authored May 7, 2024
1 parent eabe5ca commit b2824b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .changeset/old-hotels-yawn.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ Server Info includes:
- maxFileSize
- registrationRequirements
- webSocketSupport

1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
id: changesets
if: steps.check_api_release.outputs.skip_release != 'true'
with:
publish: pnpm changeset publish
version: scripts/changesets-version.sh ${{ steps.check_api_release.outputs.release_web5_api || '' }}
Expand Down
5 changes: 3 additions & 2 deletions scripts/changesets-api-release-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ 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 release..."
echo "skip_release=true" >> $GITHUB_OUTPUT
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 b2824b6

Please sign in to comment.