From 46d62a0cd6e72f07d2e654ea7385e99b0b482ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 27 Apr 2026 17:54:35 +0200 Subject: [PATCH] ci: add dry-run publish check to PRs (#3791) - Adds `deno publish --dry-run` step to CI (ubuntu, v2.x only) - Catches lockfile mismatches and other publish issues in PRs before they hit main - Prevents the recurring problem of releases failing to publish after merge --- .github/workflows/ci.yml | 4 ++++ deno.lock | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce785905..fa0185c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,3 +78,7 @@ jobs: - name: Check links if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'v2.x' run: deno task check:links + + - name: Dry-run publish + if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'v2.x' + run: deno publish --dry-run diff --git a/deno.lock b/deno.lock index f6e51fe3..2cfe7d53 100644 --- a/deno.lock +++ b/deno.lock @@ -6111,17 +6111,6 @@ "npm:vite@^7.1.4" ] } - }, - "links": { - "npm:@deno/vite-plugin@2.0.2": { - "dependencies": [ - "npm:@jsr/deno__loader@0.5", - "npm:@jsr/std__jsonc@1" - ], - "peerDependencies": [ - "npm:vite@5 || 6 || 7 || 8" - ] - } } } }