From 08cdf0bf462fce4422361549c48b5933a55c6952 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Mon, 4 May 2026 01:09:08 +0200 Subject: [PATCH 1/2] chore: rework publish --- .github/workflows/ci.yml | 7 +++++-- deno.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 202cc8f..d558aae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ jobs: !startsWith(github.event.pull_request.head.label, 'denoland:') runs-on: ubuntu-latest timeout-minutes: 30 + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 @@ -59,5 +62,5 @@ jobs: deno-version: v2.7.8 - name: Build run: deno task build - - name: Publish to JSR on tag - run: deno run -A jsr:@david/publish-on-tag@0.2.0 + - name: Publish to JSR + run: deno publish diff --git a/deno.json b/deno.json index 4ca3f94..d4cc2cc 100644 --- a/deno.json +++ b/deno.json @@ -4,6 +4,7 @@ "astro-demo" ], "name": "@deno/deploy", + "version": "0.0.98", "license": "MIT", "tasks": { "build": "deno run -A jsr:@deno/wasmbuild@0.19.2" From 0b40975cc671132d298a7e22d4084b0f46783b6c Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Mon, 4 May 2026 01:16:10 +0200 Subject: [PATCH 2/2] fix? --- .github/workflows/ci.yml | 5 +---- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d558aae..8a78d1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,9 +9,6 @@ jobs: !startsWith(github.event.pull_request.head.label, 'denoland:') runs-on: ubuntu-latest timeout-minutes: 30 - permissions: - contents: read - id-token: write steps: - uses: actions/checkout@v4 @@ -63,4 +60,4 @@ jobs: - name: Build run: deno task build - name: Publish to JSR - run: deno publish + run: deno publish --dry-run diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..85b4308 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: ci + +on: + push: + branches: + - main + +jobs: + jsr: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: denoland/setup-deno@v2 + with: + # Pinned to avoid TLS panic in `deno sandbox copy/extend` (regression + # present in at least v2.7.13 and v2.7.14; v2.7.8 is the last version + # confirmed working). See https://github.com/denoland/deno/issues/33713 + # — unpin once fixed upstream. + deno-version: v2.7.8 + - name: Build + run: deno task build + - name: Publish to JSR + run: deno publish