Skip to content

Commit

Permalink
chore: improve ci (#160)
Browse files Browse the repository at this point in the history
* chore: improve ci

* chore: ci fix
  • Loading branch information
alewin authored Oct 28, 2024
1 parent 9f8a79e commit 8d0113c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Code quality
name: PR Code Quality

on:
push:
pull_request:

jobs:
Expand All @@ -10,9 +9,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest

- name: Run Biome
run: biome ci .
31 changes: 31 additions & 0 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Preview PR Release
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run ci:build

- run: pnpx pkg-pr-new publish --compact './packages/useWorker'

0 comments on commit 8d0113c

Please sign in to comment.