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 24, 2024
1 parent a8fc666 commit 5fb8492
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish
on:
workflow_dispatch:
release:
types: [prereleased, released]
permissions:
id-token: write
jobs:
publish:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,3 +28,20 @@ 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: Install dependencies
uses: pnpm/action-setup@v4
with:
version: 9.14.2
run_install: |
- args: [--frozen-lockfile]
- name: Publish package
run: pnpm dlx jsr publish --dry-run
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 5fb8492

Please sign in to comment.