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"]