Skip to content

Commit 623963f

Browse files
rom1504claude
andcommitted
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) <noreply@anthropic.com>
1 parent ed02b87 commit 623963f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- id: publish
2323
uses: JS-DevTools/npm-publish@v4
2424
- name: Create Release
25-
if: steps.publish.outputs.type != 'none'
25+
if: ${{ steps.publish.outputs.type }}
2626
id: create_release
2727
uses: actions/create-release@v1
2828
env:

0 commit comments

Comments
 (0)