From b9e4d7b9739f9dd19d0da8022f197cbfa23ac73d Mon Sep 17 00:00:00 2001 From: Mathis Mensing Date: Thu, 15 Oct 2026 08:55:49 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01Ljnxm1Qjrocq1izGajLx8J --- .github/workflows/jsr.yml | 8 +++++++- .github/workflows/release.yml | 3 ++- jsr.json | 12 ++++++++++-- package.json | 2 +- src/version.ts | 2 +- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index a47bdb5a..6488fd20 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -10,6 +10,11 @@ on: type: string default: '' workflow_dispatch: + inputs: + version: + description: version to publish (empty keeps jsr.json's) + type: string + default: '' permissions: contents: read @@ -34,4 +39,5 @@ jobs: - uses: denoland/setup-deno@v2 with: deno-version: v2.x - - run: deno publish + # setting the version changes files, which deno publish otherwise refuses + - run: deno publish --allow-dirty diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc3c289b..5e13f2bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,8 +84,9 @@ jobs: # regular releases commit their version to the default branch (on top of what was merged since the tag), so # package.json there shows the latest release; prereleases and fixes for older majors leave it alone + # (once npm has the release: a failing JSR publish can be repeated by hand, see jsr.yml) version: - needs: [check, publish, jsr] + needs: [check, publish] if: needs.check.outputs.dist-tag == 'latest' runs-on: ubuntu-latest permissions: diff --git a/jsr.json b/jsr.json index 3c195443..a15ef7ba 100644 --- a/jsr.json +++ b/jsr.json @@ -1,9 +1,17 @@ { "name": "@matmen/imagescript", - "version": "3.0.0", + "version": "3.1.0", "license": "MIT", "exports": "./src/index.ts", "publish": { - "include": ["src", "README.md", "LICENSE", "LICENSE.MIT", "LICENSE.AGPL-3.0", "THIRD_PARTY_NOTICES.md", "licenses"] + "include": [ + "src", + "README.md", + "LICENSE", + "LICENSE.MIT", + "LICENSE.AGPL-3.0", + "THIRD_PARTY_NOTICES.md", + "licenses" + ] } } diff --git a/package.json b/package.json index b721d6b9..2f39c8b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imagescript", - "version": "3.0.0", + "version": "3.1.0", "description": "zero-dependency javascript image manipulation", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 26b61f3b..9ac601b9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ // kept in sync with package.json by scripts/version.js -export const VERSION = '3.0.0'; +export const VERSION = '3.1.0';