Skip to content

Commit

Permalink
Enable publishing to JSR in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Mar 1, 2024
1 parent 1a6d93d commit 3141fe5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
needs: pipeline

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

Expand All @@ -42,7 +46,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: latest
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"

- name: Get tag version
id: get_tag_version
Expand All @@ -56,6 +60,9 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package
run: npx jsr publish

- name: create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 3141fe5

Please sign in to comment.