Skip to content

Commit

Permalink
build: add changesets-enforce workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Oct 29, 2024
1 parent 7659046 commit 9a4ae38
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/changeset-enforce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: No patch level changesets
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
check_changesets:
runs-on: ubuntu-22.04

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Check for patch level changesets
run: |
if grep -q ': patch' .changeset/*.json; then
echo "Patch level changesets are reserved for hotfixes, use major or minor only."
exit 1
else
echo "No patch level changesets found."
fi

0 comments on commit 9a4ae38

Please sign in to comment.