🍱 Add scripts to check bundle size (#20) #99
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: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "24.x" | |
- name: Lint | |
run: deno lint | |
- name: Test | |
run: deno test | |
- name: Types | |
run: deno check . | |
- name: Format | |
run: deno fmt --check | |
- name: Dry run to publish to JSR | |
run: deno publish --dry-run | |
- name: Build npm | |
run: deno task build:npm | |
- name: Publish pkg.pr.new | |
working-directory: npm | |
run: npx pkg-pr-new publish |