-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (48 loc) · 1.42 KB
/
build-landing-page.yml
File metadata and controls
55 lines (48 loc) · 1.42 KB
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
name: Test Landing Page Build
on:
push:
branches: ["main"]
paths:
- "apps/landing-page/**"
- ".github/workflows/**"
pull_request:
branches: ["main"]
paths:
- "apps/landing-page/**"
- ".github/workflows/**"
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-and-push:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
[
ubuntu-latest,
ubuntu-24.04-arm,
windows-latest,
macos-latest,
]
node-version: [latest]
defaults:
run:
working-directory: ./apps/landing-page
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: apps/landing-page/package-lock.json
- name: Install dependencies
run: npm i
- name: Build
run: npm run build
env:
NODE_OPTIONS: --max-old-space-size=4096