Skip to content

feat(admin): build interactive Knowledge Graph & Topic Authority Cont… #859

feat(admin): build interactive Knowledge Graph & Topic Authority Cont…

feat(admin): build interactive Knowledge Graph & Topic Authority Cont… #859

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
env:
NEXTAUTH_SECRET: "${{secrets.NEXTAUTH_SECRET}}"
DATABASE_URL: "${{secrets.DATABASE_URL}}"
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Prisma Generate
run: npx prisma generate
- name: Lint
run: npm run lint || echo "Linting failed, but continuing build..."
- name: Build
run: npm run build
continue-on-error: true
# Placeholder for Deployment (e.g., to Vercel or Cloud Run)
# deploy:
# needs: build-and-test
# if: github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# steps:
# - name: Deploy to Production
# run: echo "Deploying to production..."