Skip to content

Update README.md

Update README.md #52

Workflow file for this run

name: Deploy to GitHub Pages and JSR
on:
push:
branches:
- main
jobs:
test-build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
bun install
- name: Linter
run: |
bunx eslint && echo "OK"
- name: Test
run: |
bun test
- name: Bundle
run: |
bun bundle
- name: Generate docs
run: |
bun docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
folder: examples
publish:
runs-on: ubuntu-latest
needs: test-build-deploy
permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
bun install --no-save
- name: Test
run: |
bun test
- name: Publish to JSR
run: |
bunx jsr publish