feat(admin): build interactive Knowledge Graph & Topic Authority Cont… #859
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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..." |