Skip to content

chore: update Biome ignore patterns #154

chore: update Biome ignore patterns

chore: update Biome ignore patterns #154

Workflow file for this run

# Workflow for building and deploying Next.js full-stack site to Cloudflare Workers
name: Deploy Next.js site to Cloudflare Workers
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "production-worker"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup pnpm
uses: pnpm/action-setup@v6
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: "22"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Cache optimized images
uses: actions/cache@v6
with:
path: |
public/optimized
.cache/image-optimizer.json
src/data/generated-image-manifest.json
key: ${{ runner.os }}-images-v2-${{ hashFiles('public/team/**', 'public/uploads/**', 'scripts/optimize-all-images.ts', 'src/lib/image-widths.ts') }}
restore-keys: |
${{ runner.os }}-images-v2-
- name: Validate (read-only)
run: pnpm check
- name: Audit all dependencies
run: pnpm audit:dependencies
- name: Build and deploy to Cloudflare Workers
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN || secrets.CLOUDFLARE_API_TOKEN }}
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND: ${{ vars.NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND }}
KEYSTATIC_GITHUB_CLIENT_ID: ${{ secrets.KEYSTATIC_GITHUB_CLIENT_ID }}
KEYSTATIC_GITHUB_CLIENT_SECRET: ${{ secrets.KEYSTATIC_GITHUB_CLIENT_SECRET }}
KEYSTATIC_SECRET: ${{ secrets.KEYSTATIC_SECRET }}
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: ${{ vars.NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG }}
run: pnpm deploy:worker