-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.37 KB
/
detect-changed-packages.yaml
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
name: detect changed packages
on:
pull_request:
branches: ['**']
types: [opened, reopened, labeled, unlabeled, synchronize]
concurrency:
group: detect-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
detect:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_TOKEN }}
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Enable corepack
run: corepack enable
- name: setup pnpm and install dependencies
uses: pnpm/action-setup@v3
with:
run_install: true
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: 'detect changed packages'
uses: NaverPayDev/changeset-actions/detect-add@main
with:
github_token: ${{ secrets.ACTION_TOKEN }}
packages_dir: packages,share
skip_label: skip-detect-change
skip_branches: main
formatting_script: pnpm run markdownlint:fix