Skip to content

Commit

Permalink
add github actions for test and publish to jsr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Gmerek committed Jun 26, 2024
1 parent bbbe538 commit f652227
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish
on:
push:
branches:
- main

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

publish:
name: Publish to jsr.io
needs: test
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Publish package
run: bunx jsr publish

0 comments on commit f652227

Please sign in to comment.