mirror of
https://github.com/complexcaresolutions/payload-contracts.git
synced 2026-03-17 19:53:48 +00:00
- 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>
35 lines
762 B
YAML
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 }}
|