Skip to content

Commit

Permalink
updated: publish package workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiIgna committed Sep 12, 2024
1 parent 60ce67b commit c71d8bf
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish
name: Publish package
on:
release:
types: [published]

jobs:
publish:
publish_npm:
runs-on: ubuntu-latest

permissions:
Expand All @@ -27,5 +27,15 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish_jsr:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package to jsr.io
run: npx jsr publish

0 comments on commit c71d8bf

Please sign in to comment.