Skip to content

update actions

update actions #5

Workflow file for this run

# Publish to JSR.
name: JSR Package
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: actions/setup-node@v4
with:
node-version: latest
- run: npm install pnpm -g
- run: pnpm install
- name: Run test cases
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: pnpm test
publish-jsr:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish JSR
uses: actions/setup-node@v4
with:
node-version: latest
- run: npm install jsr -g
# TODO
# - run: jsr publish