Skip to content

[WIP] Drizzle Run next #45

[WIP] Drizzle Run next

[WIP] Drizzle Run next #45

name: "[Drizzle Visualizer] πŸš€ pkg-pr-new"
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- "packages/visualizer/**"
defaults:
run:
working-directory: packages/visualizer
jobs:
lint:
name: ⬣ Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
- run: biome ci . --reporter=github
typecheck:
name: πŸ”Ž Type check
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: πŸ‘· Install pnpm
uses: pnpm/action-setup@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
cache-dependency-path: |
packages/visualizer/pnpm-lock.yaml
packages/cli/pnpm-lock.yaml
- name: πŸ“₯ Install dependencies
run: pnpm install
- name: πŸ”Ž Type check
run: pnpm typecheck
build:
name: πŸ—οΈ Build
runs-on: ubuntu-latest
needs: [lint, typecheck]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: πŸ‘· Install pnpm
uses: pnpm/action-setup@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
cache-dependency-path: |
packages/visualizer/pnpm-lock.yaml
packages/cli/pnpm-lock.yaml
- name: πŸ“₯ Install dependencies
run: pnpm install
- name: πŸ—οΈ Build
run: pnpm build
- name: πŸ“¦ Prepare package
run: pnpm prepublishOnly
- name: πŸ“¦ Publish
run: pnpm dlx pkg-pr-new publish --packageManager=pnpm