Skip to content

[WIP] Drizzle Run next #31

[WIP] Drizzle Run next

[WIP] Drizzle Run next #31

name: "[Drizzle Visualizer] πŸš€ pkg-pr-new"
on:
pull_request:
paths:
- "packages/visualizer/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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: πŸ›‘ Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "npm"
- name: πŸ“₯ Install dependencies
run: npm ci --include=dev
- name: πŸ”Ž Type check
run: npm run typecheck
build:
name: πŸ—οΈ Build
runs-on: ubuntu-latest
needs: [lint, typecheck]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: βŽ” Setup node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "npm"
- name: πŸ“₯ Install dependencies
run: npm ci --include=dev
- name: πŸ—οΈ Build
run: npm run build
- name: πŸ“¦ Publish
run: npx pkg-pr-new publish