Skip to content

fix: e2e test CI

fix: e2e test CI #3

# Same pattern as payblocks: require a new .changeset/*.md for PRs to main, unless
# the PR is labelled `no-changeset` (docs-only, chore, etc.).
name: Validate Changeset
on:
pull_request:
branches: [main]
jobs:
check-files:
name: Check for changeset
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changeset') }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for new changeset
run: |
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
if git diff --name-only "origin/${BASE_BRANCH}...HEAD" | grep -q '^.changeset/.*\.md$'; then
echo "A new changeset was added."
else
echo "No new changeset in this PR. Add one with: pnpm changeset (or add label no-changeset for docs/chore only)."
exit 1
fi