payload-contracts/templates/github-workflows/ci.yml
Martin Porwoll 715783dbf3 docs: add frontend conventions, CI/CD templates, and deployment scripts
- Frontend conventions document (setup, patterns, workflow)
- CI workflow template for GitHub Actions
- Staging deploy workflow template
- Plesk post-deploy script template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 17:53:09 +00:00

35 lines
762 B
YAML

# CI Workflow Template for Frontend Repos
# Copy to: .github/workflows/ci.yml
name: CI
on:
push:
branches: [develop, main]
pull_request:
branches: [develop]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build
env:
NEXT_PUBLIC_PAYLOAD_URL: https://cms.c2sgmbh.de
NEXT_PUBLIC_TENANT_ID: ${{ vars.TENANT_ID }}
NEXT_PUBLIC_TENANT_SLUG: ${{ vars.TENANT_SLUG }}
NEXT_PUBLIC_SITE_URL: ${{ vars.SITE_URL }}