Skip to content

feat: align landing copy with repo-to-social positioning #118

feat: align landing copy with repo-to-social positioning

feat: align landing copy with repo-to-social positioning #118

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build app
run: npm run build
deploy-production:
name: Deploy production to Vercel
runs-on: ubuntu-latest
needs: verify
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment: production
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TELEMETRY_DISABLED: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Validate Vercel deployment secrets
shell: bash
run: |
missing=0
for name in VERCEL_TOKEN VERCEL_ORG_ID VERCEL_PROJECT_ID; do
if [ -z "${!name}" ]; then
echo "::error title=Missing GitHub Actions secret::$name is required for production deployment."
missing=1
fi
done
exit "$missing"
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Validate Vercel token
run: vercel whoami --token="$VERCEL_TOKEN" >/dev/null
- name: Pull Vercel production environment
run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
- name: Build production artifacts
run: vercel build --prod --token="$VERCEL_TOKEN"
- name: Deploy production artifacts
run: |
deployment_url="$(vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN")"
echo "Production deployment: $deployment_url" >> "$GITHUB_STEP_SUMMARY"