jeremylongshore/claude-code-plugins-plus-skills
clerk-pack
plugins/saas-packs/clerk-pack/skills/clerk-ci-integration/SKILL.md
January 22, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/clerk-pack/skills/clerk-ci-integration/SKILL.md -a claude-code --skill clerk-ci-integrationInstallation paths:
.claude/skills/clerk-ci-integration/# Clerk CI Integration
## Overview
Set up CI/CD pipelines with Clerk authentication testing.
## Prerequisites
- GitHub repository with Actions enabled
- Clerk test API keys
- npm/pnpm project configured
## Instructions
### Step 1: GitHub Actions Workflow
```yaml
# .github/workflows/test.yml
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY_TEST }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY_TEST }}
jobs:
test:
runs-on: ubuntu-latest
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: Type check
run: npm run typecheck
- name: Run unit tests
run: npm test
- name: Run integration tests
run: npm run test:integration
env:
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY_TEST }}
- name: Build
run: npm run build
```
### Step 2: E2E Testing with Playwright
```yaml
# .github/workflows/e2e.yml
name: E2E Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
e2e:
runs-on: ubuntu-latest
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: Install Playwright
run: npx playwright install --with-deps
- name: Build application
run: npm run build
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY_TEST }}
- name: Run E2E tests
run: npx playwright test
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY_TEST }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SEC