Skip to content

Add prepublishOnly, separate clean from build #6

Add prepublishOnly, separate clean from build

Add prepublishOnly, separate clean from build #6

name: Build, Test, Release
on:
push:
branches: main
pull_request:
branches: "*"
jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Test
run: |
pnpm run check-format
pnpm run test
- name: Build
run: pnpm run build