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';