Skip to content

chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.1 #42

chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.1

chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.1 #42

Workflow file for this run

name: Test website build
on:
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
PREFERREDAI_NOINDEX: ${{ startsWith(github.head_ref || github.ref_name, 'keystatic/') && 'true' || 'false' }}
steps:
- name: Check out proposed revision
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: "22"
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Restore generated-image cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: |
public/optimized
.cache/image-optimizer.json
key: ${{ runner.os }}-images-v4-${{ hashFiles('public/uploads/**', 'public/team/members/**', 'public/team/activities/**', 'scripts/optimize-all-images.ts', 'src/lib/image-widths.ts') }}
restore-keys: |
${{ runner.os }}-images-v4-
- name: Validate website and editorial content
run: pnpm check
- name: Audit dependencies
run: pnpm audit:dependencies
- name: Build static website
run: pnpm build:prepared
- name: Add preview-only robots header
if: env.PREFERREDAI_NOINDEX == 'true'
run: |
printf '\n/*\n X-Robots-Tag: noindex, nofollow\n' >> out/_headers
- name: Type-check admin application
run: pnpm --filter @preferredai/admin typecheck
- name: Build admin Worker without deployment secrets
env:
KEYSTATIC_GITHUB_CLIENT_ID: build-placeholder
KEYSTATIC_GITHUB_CLIENT_SECRET: build-placeholder
KEYSTATIC_SECRET: 0000000000000000000000000000000000000000000000000000000000000000
NEXT_PUBLIC_KEYSTATIC_STORAGE_KIND: github
NEXT_PUBLIC_KEYSTATIC_GITHUB_APP_SLUG: preferredai-publisher
run: pnpm --filter @preferredai/admin build:worker
- name: Upload static export
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
with:
name: test-static-export
path: out
if-no-files-found: error
retention-days: 3