Skip to content

fix(publish): tolerate package.json already at target version#8

Merged
St0rmz1 merged 1 commit intomainfrom
fix/publish-workflow-empty-commit
Apr 17, 2026
Merged

fix(publish): tolerate package.json already at target version#8
St0rmz1 merged 1 commit intomainfrom
fix/publish-workflow-empty-commit

Conversation

@St0rmz1
Copy link
Copy Markdown
Collaborator

@St0rmz1 St0rmz1 commented Apr 17, 2026

When a prep PR lands the version bump on main before the publish workflow is dispatched, `git add package.json` stages nothing and `git commit` exits non-zero under `set -euo pipefail` — aborting the tag/push/release step after npm publish already succeeded.

Now we skip the commit and tag HEAD directly when the tree already represents the release. This happened on the v0.1.0 release and required manual tag/release recovery.

@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot Bot commented Apr 17, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • .github/workflows/publish.yml

Reviewed by gpt-5.4-20260305 · 117,814 tokens

@St0rmz1 St0rmz1 merged commit 609119f into main Apr 17, 2026
7 checks passed
@St0rmz1 St0rmz1 deleted the fix/publish-workflow-empty-commit branch April 17, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants