From c17f4ca35c7b2e50bd2df7b2d23fcd9aceadb9b3 Mon Sep 17 00:00:00 2001 From: vitalragaz Date: Fri, 18 Sep 2026 11:28:14 +0000 Subject: [PATCH] ci: make the manual-publish dry run pack instead of publish, so it can rehearse a published tag [AIS-7539] --- .github/workflows/manual-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 0640b69..1e9329a 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -88,9 +88,11 @@ jobs: run: pnpm install --frozen-lockfile - name: Build run: pnpm build + # `npm publish --dry-run` still asks the registry whether the version exists, + # so it cannot rehearse an already-published tag; `npm pack` never contacts it. - name: Pack only (dry run) if: ${{ inputs.dry_run }} - run: npm publish --dry-run --access public + run: npm pack --dry-run - name: Publish to npm if: ${{ !inputs.dry_run }} run: npm publish --provenance --access public