Skip to content

Commit 53940c2

Browse files
rom1504claude
andauthored
Fix publish condition for npm-publish v4 (#376)
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: rom1504 <rom1504@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ed02b87 commit 53940c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.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)