From 7ef0d08dc28b826ee685f1f56906751558aef3c9 Mon Sep 17 00:00:00 2001 From: Mathis Mensing Date: Wed, 14 Oct 2026 20:06:21 +0000 Subject: [PATCH] fix JSR publishing: single license, runnable by hand JSR only accepts a single license identifier, not an SPDX expression, so the dual license shows up as MIT there (the LICENSE file in the package still lists both). The JSR job moves into its own workflow that release.yml calls and that can also be started from the Actions tab Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ljnxm1Qjrocq1izGajLx8J --- .github/workflows/jsr.yml | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 12 +----------- jsr.json | 2 +- 3 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/jsr.yml diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml new file mode 100644 index 0000000..f17dc76 --- /dev/null +++ b/.github/workflows/jsr.yml @@ -0,0 +1,24 @@ +name: jsr + +# publishes the TypeScript sources to JSR (@matmen/imagescript), authenticated through GitHub OIDC (the package is +# linked to this repository on jsr.io). release.yml runs it after npm; can also be run by hand from the Actions tab +on: + workflow_call: + workflow_dispatch: + +permissions: + contents: read + id-token: write + +jobs: + publish: + runs-on: ubuntu-latest + environment: + name: jsr + url: https://jsr.io/@matmen/imagescript/versions + steps: + - uses: actions/checkout@v7 + - uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + - run: deno publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50822b5..b85aa63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,20 +60,10 @@ jobs: jsr: needs: publish - runs-on: ubuntu-latest - environment: - name: jsr - url: https://jsr.io/@matmen/imagescript/versions permissions: contents: read id-token: write - steps: - - uses: actions/checkout@v7 - - uses: denoland/setup-deno@v2 - with: - deno-version: v2.x - # publishes the TypeScript sources as they are, JSR authenticates the workflow through the linked repository - - run: deno publish + uses: ./.github/workflows/jsr.yml docs: needs: [check, publish] diff --git a/jsr.json b/jsr.json index ca04ece..3c19544 100644 --- a/jsr.json +++ b/jsr.json @@ -1,7 +1,7 @@ { "name": "@matmen/imagescript", "version": "3.0.0", - "license": "(AGPL-3.0-or-later OR MIT)", + "license": "MIT", "exports": "./src/index.ts", "publish": { "include": ["src", "README.md", "LICENSE", "LICENSE.MIT", "LICENSE.AGPL-3.0", "THIRD_PARTY_NOTICES.md", "licenses"]