-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 854 Bytes
/
build.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
---
name: Build
# yamllint disable-line rule:truthy
on:
push:
branches:
- dev
pull_request:
branches:
- dev
types:
- opened
- reopened
- synchronize
workflow_dispatch:
concurrency:
group: build-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-nextjs:
name: 🏗️ Build
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: 🏗️ Setup PNPM
uses: ./.github/actions/setup-app
with:
cache-build: true
- name: 🏗️ Build
run: pnpm build
env:
CI: true
NODE_ENV: production
SKIP_ENV_VALIDATION: true
TURBO: 1 # Use turbopack for faster builds