-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 933 Bytes
/
Copy pathchangeset-check.yml
File metadata and controls
39 lines (31 loc) · 933 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
39
name: changeset-check
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
check:
name: Check for changeset
runs-on: ubuntu-latest
steps:
- name: Skip for release PRs
if: github.head_ref == 'changeset-release/main'
run: echo "Release PR — changeset not required"
- name: Checkout code
if: github.head_ref != 'changeset-release/main'
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Node.js
if: github.head_ref != 'changeset-release/main'
uses: actions/setup-node@v5
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
if: github.head_ref != 'changeset-release/main'
run: npm ci
- name: Check for changeset
if: github.head_ref != 'changeset-release/main'
run: npx changeset status --since=origin/main