-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (32 loc) · 983 Bytes
/
changeset-check.yml
File metadata and controls
38 lines (32 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Changeset check
# Fails the PR if any publishable package's source changed without a
# corresponding `.changeset/*.md`. The error message lists the missing
# packages so `/babysit-pr` can add the changeset automatically and
# unblock the merge.
#
# Skipped on the bot-authored "Version Packages" PR — that PR consumes
# changesets and shouldn't itself need one.
on:
pull_request:
branches: [main]
paths:
- "packages/**"
- ".changeset/**"
permissions:
contents: read
jobs:
check:
name: Require changeset for publishable package changes
runs-on: ubuntu-latest
if: github.event.pull_request.head.ref != 'changeset-release/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Run changeset check
env:
GITHUB_BASE_REF: ${{ github.base_ref }}
run: node scripts/check-changeset.mjs