Skip to content

fix: resolve build crash by configuring turbo env vars and syncing de… #5

fix: resolve build crash by configuring turbo env vars and syncing de…

fix: resolve build crash by configuring turbo env vars and syncing de… #5

Workflow file for this run

name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
build:
name: Build & Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Turbo Cache
id: turbo-cache
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Lint
run: npm run lint
- name: Build
run: npm run build
env:
NEXT_PUBLIC_SANITY_PROJECT_ID: "placeholder"
NEXT_PUBLIC_SANITY_DATASET: "production"
NEXT_PUBLIC_SITE_URL: "http://localhost:3000"
SANITY_API_TOKEN: "placeholder"
DATABASE_URL: "postgresql://placeholder"
RESEND_API_KEY: "placeholder"
EMAIL_FROM: "onboarding@resend.dev"
EMAIL_TO: "placeholder@example.com"