-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.23 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
name: Build
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
paths:
- "**/*.{js,jsx,ts,tsx}"
- "package*.json"
- ".github/workflows/build.yml"
- "nixpacks.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: node:18
options: --memory=8g
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
- name: Install dependencies
run: |
npm clean-install --omit=optional
npm cache verify
continue-on-error: false
- name: Build
run: |
ulimit -S -c unlimited
npm run build
env:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }}
NODE_OPTIONS: "--max_old_space_size=7680"
NEXT_TELEMETRY_DISABLED: "1"
NPM_CONFIG_PRODUCTION: "false"
NODE_ENV: "production"
timeout-minutes: 10