Changesets · Branches · Tags · Compare
| Changeset | dfa6694c37705c36ae9d2fd5595dcf1c445f71de6bdde97975798a657c897e73 |
|---|---|
| Author | continue[bot] <230936708+continue[bot]@users.noreply.github.com> · 2025-09-25 10:24 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-25 10:24 -07:00 |
| Parents | 2a6fa8b977ed |
2 files changed
modified docs/guides/netlify-mcp-continuous-deployment.mdx +24 −5
| @@ -452,6 +452,14 @@ | ||
| 452 | 452 | |
| 453 | 453 | ## Automated Performance Checks |
| 454 | 454 | |
| 455 | +### Add GitHub Secrets | |
| 456 | + | |
| 457 | +Navigate to **Repository Settings → Secrets and variables → Actions** and add: | |
| 458 | + | |
| 459 | +- `CONTINUE_API_KEY`: Your Continue API key from [hub.continue.dev/settings/api-keys](https://hub.continue.dev/settings/api-keys) | |
| 460 | +- `NETLIFY_AUTH_TOKEN`: Your Netlify personal access token | |
| 461 | +- `NETLIFY_SITE_ID`: Your Netlify site ID | |
| 462 | + | |
| 455 | 463 | ### GitHub Actions Performance Guard |
| 456 | 464 | |
| 457 | 465 | Block PRs that degrade performance: |
| @@ -471,17 +479,28 @@ | ||
| 471 | 479 | with: |
| 472 | 480 | node-version: "22" |
| 473 | 481 | |
| 482 | + - name: Install Continue CLI | |
| 483 | + run: | | |
| 484 | + npm install -g @continuedev/cli | |
| 485 | + echo "✅ Continue CLI installed" | |
| 486 | + | |
| 487 | + - name: Authenticate Continue CLI | |
| 488 | + env: | |
| 489 | + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} | |
| 490 | + run: | | |
| 491 | + cn auth login --api-key "$CONTINUE_API_KEY" | |
| 492 | + echo "✅ Continue CLI authenticated" | |
| 493 | + | |
| 474 | 494 | - name: Deploy and Test Performance |
| 475 | 495 | id: perf |
| 476 | 496 | env: |
| 477 | 497 | NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |
| 478 | 498 | NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |
| 479 | 499 | run: | |
| 480 | - npx @continuedev/cli@latest << 'EOF' | |
| 481 | - Deploy PR preview and run Lighthouse. | |
| 482 | - Compare scores with main branch. | |
| 483 | - Output JSON with score deltas. | |
| 484 | - EOF > performance.json | |
| 500 | + echo "🚀 Deploying PR preview and analyzing performance..." | |
| 501 | + cn -p "Deploy PR preview and run Lighthouse. | |
| 502 | + Compare scores with main branch. | |
| 503 | + Output JSON with score deltas." > performance.json | |
| 485 | 504 | |
| 486 | 505 | - name: Comment Performance Results |
| 487 | 506 | uses: actions/github-script@v7 |
modified docs/guides/snyk-mcp-continue-cookbook.mdx +3 −1
| @@ -321,8 +321,10 @@ | ||
| 321 | 321 | echo "✅ Continue CLI installed" |
| 322 | 322 | |
| 323 | 323 | - name: Authenticate Continue CLI |
| 324 | + env: | |
| 325 | + CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }} | |
| 324 | 326 | run: | |
| 325 | - cn auth login --api-key "${{ secrets.CONTINUE_API_KEY }}" | |
| 327 | + cn auth login --api-key "$CONTINUE_API_KEY" | |
| 326 | 328 | echo "✅ Continue CLI authenticated" |
| 327 | 329 | |
| 328 | 330 | - name: Run Security Scans |