Skip to content

Commit

Permalink
Add publish to JSR on Release
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrokehl committed Mar 7, 2024
1 parent 8adbd53 commit 2598a49
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to JSR
on:
release:
types: [published]
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
- run: npx jsr publish
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Publish Package to npmjs
name: Publish to NPM
on:
release:
types: [published]
jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@pedrokehl/caminho",
"version": "1.3.3",
"exports": "./src/index.ts"
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "caminho",
"version": "1.3.2",
"version": "1.3.3",
"description": "Caminho means path, a new path to your data processing.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 2598a49

Please sign in to comment.