-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 1.48 KB
/
ci.yml
File metadata and controls
55 lines (49 loc) · 1.48 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push: {branches: [main]}
pull_request:
# edited is needed because that's the trigger when the base branch is
# changed on a PR
# The rest are the defaults.
types: [edited, opened, synchronize, reopened]
jobs:
changeset:
name: Check for .changeset entries for all changed files
if: |
github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot-preview[bot]' &&
!startsWith(github.head_ref, 'changeset-release/') &&
github.ref != 'refs/heads/main'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- name: Check out latest commit
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Check for changeset entries
run: |
pnpm install --frozen-lockfile
pnpm changeset status --since "origin/${{ github.base_ref }}"
verify:
name: pnpm verify
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- name: Check out latest commit
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}, Setup pnpm, Install & cache node_modules
uses: Khan/actions@shared-node-cache-v3
with: {node-version: "${{ matrix.node-version }}"}
- name: Verify
run: pnpm run verify