Skip to content

Commit 165d534

Browse files
matmenclaude
andcommitted
fix the JSR publish of releases, set version 3.1.0
deno publish refuses uncommitted changes, which setting the version from the tag makes: publish with --allow-dirty. jsr.yml can now be started by hand with a version, to repeat a failed JSR publish; the version commit no longer waits for JSR, only for npm. 3.1.0 is on npm, but its version commit was skipped because the JSR publish failed, so it's set here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ljnxm1Qjrocq1izGajLx8J
1 parent c0694b8 commit 165d534

5 files changed

Lines changed: 21 additions & 6 deletions

File tree

‎.github/workflows/jsr.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
type: string
1111
default: ''
1212
workflow_dispatch:
13+
inputs:
14+
version:
15+
description: version to publish (empty keeps jsr.json's)
16+
type: string
17+
default: ''
1318

1419
permissions:
1520
contents: read
@@ -34,4 +39,5 @@ jobs:
3439
- uses: denoland/setup-deno@v2
3540
with:
3641
deno-version: v2.x
37-
- run: deno publish
42+
# setting the version changes files, which deno publish otherwise refuses
43+
- run: deno publish --allow-dirty

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ jobs:
8484

8585
# regular releases commit their version to the default branch (on top of what was merged since the tag), so
8686
# package.json there shows the latest release; prereleases and fixes for older majors leave it alone
87+
# (once npm has the release: a failing JSR publish can be repeated by hand, see jsr.yml)
8788
version:
88-
needs: [check, publish, jsr]
89+
needs: [check, publish]
8990
if: needs.check.outputs.dist-tag == 'latest'
9091
runs-on: ubuntu-latest
9192
permissions:

‎jsr.json‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"name": "@matmen/imagescript",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"license": "MIT",
55
"exports": "./src/index.ts",
66
"publish": {
7-
"include": ["src", "README.md", "LICENSE", "LICENSE.MIT", "LICENSE.AGPL-3.0", "THIRD_PARTY_NOTICES.md", "licenses"]
7+
"include": [
8+
"src",
9+
"README.md",
10+
"LICENSE",
11+
"LICENSE.MIT",
12+
"LICENSE.AGPL-3.0",
13+
"THIRD_PARTY_NOTICES.md",
14+
"licenses"
15+
]
816
}
917
}

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagescript",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "zero-dependency javascript image manipulation",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

‎src/version.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// kept in sync with package.json by scripts/version.js
2-
export const VERSION = '3.0.0';
2+
export const VERSION = '3.1.0';

0 commit comments

Comments
 (0)