Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 1 addition & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
Loading