Merge pull request #22 from undrstnd-labs/changeset-release/main #73
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: 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 |