-
Notifications
You must be signed in to change notification settings - Fork 73
44 lines (37 loc) · 906 Bytes
/
ci.yml
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
name: "CI"
on:
pull_request:
merge_group:
jobs:
# Add pre-job to skip duplicate actions in merge queues
pre-job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
timeout-minutes: 15
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
do_not_skip: '["workflow_dispatch"]'
build:
needs:
- pre-job
if: needs.pre-job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9.5.0
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- name: Build next.js app
run: pnpm build