From 0e7a17ee11c9adbad496bfa12820884b219359b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Sat, 24 Feb 2024 20:29:16 +0100 Subject: [PATCH 1/3] Publish to jsr --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ deno.json | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 deno.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..99a6d5f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Install Deno + uses: denoland/setup-deno@v1 + + - name: Publish package + run: deno publish diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..dab4a91 --- /dev/null +++ b/deno.json @@ -0,0 +1,5 @@ +{ + "name": "@koddsson/co-authored-by", + "version": "0.4.2", + "exports": "index.js" +} From 76b22cb3f0b8ce4e3cad7a225f06aa93c28bf3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Sat, 24 Feb 2024 20:33:20 +0100 Subject: [PATCH 2/3] publish from jsr branch --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99a6d5f..7917202 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - jsr jobs: publish: From 5ceb9e422852ffa1935e3e1a4a07a224d2357e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Sat, 24 Feb 2024 20:36:32 +0100 Subject: [PATCH 3/3] Fix exports in deno.json --- deno.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.json b/deno.json index dab4a91..ea74619 100644 --- a/deno.json +++ b/deno.json @@ -1,5 +1,5 @@ { "name": "@koddsson/co-authored-by", "version": "0.4.2", - "exports": "index.js" + "exports": "./index.js" }