-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.41 KB
/
Copy pathcheck-changeset.yml
File metadata and controls
55 lines (48 loc) · 1.41 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: ChangeSet Check
on:
workflow_dispatch:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "packages/**"
- "samples/**"
- "serverless/**"
- "servers/**"
- "starters/**"
- "package.json"
branches:
- main
permissions:
contents: read
pull-requests: write
concurrency:
group: $${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-change-set:
runs-on: [ubuntu-latest]
if: (!github.event.pull_request || github.event.pull_request.draft == false)
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Use node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- name: Install dependencies
shell: bash
run: pnpm install
- name: Check if change set is provided
run: pnpm changeset status --since=origin/main