From 9ce03834dd583ae902ddfc9c3834ef4cc7377f24 Mon Sep 17 00:00:00 2001 From: rom1504 Date: Sat, 28 Mar 2026 17:17:53 +0000 Subject: [PATCH] Fix publish condition for npm-publish v4 npm-publish v4 outputs empty string (not 'none') when version is unchanged. The old condition != 'none' was always true, causing Create Release to run and fail on every non-release commit. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9abb1a2..00ef856 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -23,7 +23,7 @@ jobs: - id: publish uses: JS-DevTools/npm-publish@v4 - name: Create Release - if: steps.publish.outputs.type != 'none' + if: ${{ steps.publish.outputs.type }} id: create_release uses: actions/create-release@v1 env: