From 3e443220e9dd1f1df4bcb45c3eb3df0b4706b11c Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:59:06 +0000 Subject: [PATCH] ci: Add JSR --- .github/workflows/publish.yaml | 12 +++++++++++- jsr.json | 8 ++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 348bf66..d11b58b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,7 +5,7 @@ on: permissions: id-token: write jobs: - publish: + npm: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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 diff --git a/jsr.json b/jsr.json index 5d88f7c..114c32b 100644 --- a/jsr.json +++ b/jsr.json @@ -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"] + } }