Skip to content

Commit

Permalink
Add GH action check to ensure there are no leftover changeset files o…
Browse files Browse the repository at this point in the history
…n release
  • Loading branch information
MillanWangGadget committed Nov 22, 2024
1 parent cde06b0 commit c32c7ee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,18 @@ jobs:
webpackStatsFile: ./packages/test-bundles/dist/shopify-read-webpack-stats.json
key: ${{ secrets.RELATIVE_CI_SHOPIFY_BUNDLE_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}
validate-no-leftover-changesets:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Code
uses: actions/checkout@v3
- name: Verify changesets folder is empty in the react package
run: |
FOLDER_PATH="./packages/react/.changeset"
if [ -d "$FOLDER_PATH" ] && [ "$(ls -A $FOLDER_PATH)" ]; then
echo "The changesets folder $FOLDER_PATH is not empty!"
exit 1
else
echo "The folder $FOLDER_PATH is empty."
fi

0 comments on commit c32c7ee

Please sign in to comment.