-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.22 KB
/
extract-api.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
48
49
50
51
52
53
54
55
# iTwin.js Extract API Build
name: Extract API
on:
pull_request:
branches: ["master", "stable", "next"]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
files-changed:
if: '! github.event.pull_request.draft'
runs-on: ubuntu-latest
name: Detect what files changed
outputs:
packages: ${{ steps.changes.outputs.packages }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for file changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
packages:
- 'packages/**'
extract-api:
needs: [files-changed]
if: ${{ needs.files-changed.outputs.packages == 'true' }}
runs-on: ubuntu-latest
name: Extract API
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Extract API
env:
TF_BUILD: 1
run: pnpm lage extract-api check-internal