Skip to content

Commit c50cc03

Browse files
matmenclaude
andcommitted
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ljnxm1Qjrocq1izGajLx8J
1 parent ea5fbbf commit c50cc03

3 files changed

Lines changed: 26 additions & 12 deletions

File tree

‎.github/workflows/jsr.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: jsr
2+
3+
# publishes the TypeScript sources to JSR (@matmen/imagescript), authenticated through GitHub OIDC (the package is
4+
# linked to this repository on jsr.io). release.yml runs it after npm; can also be run by hand from the Actions tab
5+
on:
6+
workflow_call:
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: jsr
18+
url: https://jsr.io/@matmen/imagescript/versions
19+
steps:
20+
- uses: actions/checkout@v7
21+
- uses: denoland/setup-deno@v2
22+
with:
23+
deno-version: v2.x
24+
- run: deno publish

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,10 @@ jobs:
6060

6161
jsr:
6262
needs: publish
63-
runs-on: ubuntu-latest
64-
environment:
65-
name: jsr
66-
url: https://jsr.io/@matmen/imagescript/versions
6763
permissions:
6864
contents: read
6965
id-token: write
70-
steps:
71-
- uses: actions/checkout@v7
72-
- uses: denoland/setup-deno@v2
73-
with:
74-
deno-version: v2.x
75-
# publishes the TypeScript sources as they are, JSR authenticates the workflow through the linked repository
76-
- run: deno publish
66+
uses: ./.github/workflows/jsr.yml
7767

7868
docs:
7969
needs: [check, publish]

‎jsr.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@matmen/imagescript",
33
"version": "3.0.0",
4-
"license": "(AGPL-3.0-or-later OR MIT)",
4+
"license": "MIT",
55
"exports": "./src/index.ts",
66
"publish": {
77
"include": ["src", "README.md", "LICENSE", "LICENSE.MIT", "LICENSE.AGPL-3.0", "THIRD_PARTY_NOTICES.md", "licenses"]

0 commit comments

Comments
 (0)