-
Notifications
You must be signed in to change notification settings - Fork 266
32 lines (29 loc) · 996 Bytes
/
Copy pathchangeset.yml
File metadata and controls
32 lines (29 loc) · 996 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
name: Changeset
on:
pull_request:
# Keep in sync with the release workflow: backports to a `vN` maintenance branch
# need a changeset just as much as changes to `main` do.
branches: [main, 'v[0-9]+']
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
status:
name: 'Changeset: Status'
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
# `changeset status` diffs against the base branch, so it needs the history
fetch-depth: 0
- uses: actions/setup-node@v7
with:
node-version: lts/*
cache: npm
# Only the changesets CLI is needed here, so skip the build that `prepare` triggers
- run: npm ci --ignore-scripts
- name: Check that user-facing changes have a changeset
run: npx changeset status --since=origin/${{ github.base_ref }}