Skip to content

Commit

Permalink
ci: Add JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Dec 23, 2024
1 parent a8fc666 commit 3e44322
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
permissions:
id-token: write
jobs:
publish:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,3 +27,13 @@ jobs:
run: pnpm publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
8 changes: 6 additions & 2 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@runescape/runescape",
"version": "0.9.0",
"exports": "./source/index.ts"
"version": "0.10.4",
"exports": "./source/index.ts",
"publish": {
"include": ["source/", "README.md"]
}
}

0 comments on commit 3e44322

Please sign in to comment.