Skip to content

Commit

Permalink
ci: add automated js publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbanugo committed Aug 29, 2024
1 parent e8e6164 commit 917bd1d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write # The OIDC ID token is used for authentication with JSR.

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2

- run: bun install

- name: Publish package
run: npx jsr publish
5 changes: 5 additions & 0 deletions jsr.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@pmbanugo/cacheable-fetch",
"version": "1.0.0",
"exports": "./src/index.ts"
}

0 comments on commit 917bd1d

Please sign in to comment.