Folder based docs tree #46
Workflow file for this run
This file contains 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: on-push | |
on: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["main"] | |
merge_group: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
ci: | |
name: 🔁 ci | |
runs-on: | |
labels: ubuntu-latest | |
env: | |
NEXTAUTH_SECRET: ignore | |
GOOGLE_CLIENT_ID: ignore, | |
GOOGLE_CLIENT_SECRET: ignore | |
GITHUB_OAUTH_TOKEN: ignore | |
DATABASE_URL: http://example.com | |
RESEND_API_KEY: ignore | |
TEST_EMAIL_ADDRESS: [email protected] | |
STRIPE_API_KEY: ignore | |
STRIPE_WEBHOOK_SECRET: ignore | |
NEXT_PUBLIC_APP_URL: http://localhost:3000 | |
NEXT_PUBLIC_STRIPE_PRO_MONTHLY_PLAN_ID: ignore | |
NEXT_PUBLIC_STRIPE_PRO_YEARLY_PLAN_ID: ignore | |
NEXT_PUBLIC_STRIPE_BUSINESS_MONTHLY_PLAN_ID: ignore | |
NEXT_PUBLIC_STRIPE_BUSINESS_YEARLY_PLAN_ID: ignore | |
EDGE_STORE_ACCESS_KEY: ignore | |
EDGE_STORE_SECRET_KEY: ignore | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup Node 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm i | |
- name: 🦄 Format | |
run: pnpm format:check | |
- name: 🎨 Lint | |
run: pnpm lint | |
- name: 👷♂️ Build | |
run: pnpm build |