Skip to content

Feature/package api #58

Feature/package api

Feature/package api #58

Workflow file for this run

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:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: pk_test_
CLERK_SECRET_KEY: sk_test_
DATABASE_HOST: ignore
DATABASE_NAME: ignore
DATABASE_USERNAME: ignore
DATABASE_PASSWORD: ignore
RESEND_API_KEY: ignore
TEST_EMAIL_ADDRESS: [email protected]
STRIPE_API_KEY: sk_test_
STRIPE_WEBHOOK_SECRET: whsec_
NEXT_PUBLIC_STRIPE_STD_PRODUCT_ID: prod_
NEXT_PUBLIC_STRIPE_STD_MONTHLY_PRICE_ID: price_
NEXT_PUBLIC_STRIPE_PRO_PRODUCT_ID: prod_
NEXT_PUBLIC_STRIPE_PRO_MONTHLY_PRICE_ID: price_
EDGE_STORE_ACCESS_KEY: ignore
EDGE_STORE_SECRET_KEY: ignore
NEXT_PUBLIC_APP_URL: http://localhost:3000
NEXTJS_URL: http://localhost:3000
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