diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..c1623fb --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,12 @@ +name: PR Checks +on: [pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - name: build + run: bun run clean && bun run build diff --git a/.gitignore b/.gitignore index 3c3629e..dd87e2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +build diff --git a/package.json b/package.json index 495f3ef..780797a 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "module": "src/index.ts", "type": "module", "scripts": { + "build": "bun build ./src/index.ts --outdir ./build", + "clean": "rm -rf ./build", "dev": "bun --watch src/index.ts | pino-pretty", "prisma:generate": "prisma generate" },