[WIP] Drizzle Run next #47
Workflow file for this run
This file contains hidden or 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: "[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 |