Skip to content

Merge pull request #23 from undrstnd-labs/changeset-release/main #75

Merge pull request #23 from undrstnd-labs/changeset-release/main

Merge pull request #23 from undrstnd-labs/changeset-release/main #75

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DIRECT_URL: ${{ secrets.DIRECT_URL }}
GROQ_API_ENDPOINT: ${{ secrets.GROQ_API_ENDPOINT }}
NEXT_PUBLIC_APP_URL: ${{ secrets.NEXT_PUBLIC_APP_URL }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
- name: Check for pnpm-lock.yaml
run: |
if [ ! -f pnpm-lock.yaml ]; then
echo "pnpm-lock.yaml is missing. Generating a new one..."
pnpm install
fi
- run: pnpm install --frozen-lockfile
- run: pnpm run lint && pnpm run build && pnpm run test