Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build

on:
pull_request:
push:
branches:
- main

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
Comment thread
Copilot marked this conversation as resolved.
build:
name: Next.js build
runs-on: ubuntu-latest

# Placeholder values only. `next build` needs these to be present and
# well-formed because a few modules construct clients at import time, but
# nothing here is contacted during the build.
env:
DATABASE_URL: postgresql://user:password@localhost:5432/db
DIRECT_URL: postgresql://user:password@localhost:5432/db
NEXT_PUBLIC_SUPABASE_URL: https://placeholder.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: placeholder-key
NEXT_PUBLIC_BASE_URL: http://localhost:3000
NEXT_PUBLIC_REDIRECT_URL: http://localhost:3000/auth/callback
NEXT_PUBLIC_COLONY_URL: http://localhost:3000
MAILGUN_DOMAIN: mg.example.com
MAILGUN_API_KEY: placeholder-key
NEWSLETTER_URI: http://localhost:3000/api/newsletter
NOTION_DB_ID: placeholder
NOTION_DB_SECRET: placeholder

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4.0.0
with:
version: 10.14.0

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the latest node version is 26. Node 20 no longer receives updates and is EOL, do we still wanna keep this as our build version?

cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build
Loading