Skip to content

ci: use GitHub Packages instead of npm registry #18

ci: use GitHub Packages instead of npm registry

ci: use GitHub Packages instead of npm registry #18

Workflow file for this run

name: CI
on:
push:
branches: ["main", "dev"]
pull_request:
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: https://npm.pkg.github.com/
scope: '@napgram'
- run: pnpm i
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ hashFiles('prisma/schema.prisma') != '' }}
run: pnpm prisma generate
env:
DATABASE_URL: "postgresql://postgres:password@localhost:5432/napgram?schema=public"
- run: pnpm validate
- run: pnpm type-check