ci: add auto-publish workflow for npm releases on version bump - #3
Merged
Conversation
Creates GitHub Actions workflow that automatically publishes to npm when: - A version bump is pushed to main (via changesets) - All checks pass (build, typecheck, benchmark) - NPM_TOKEN secret is configured Workflow also creates GitHub Release with changelog automatically. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017SuCXyVCujpkbR38HjDrG7
- Remove separate auto-changelog workflow from PR events - Integrate all release steps into single publish workflow - Use changesets for official changelog management - Simplified permissions and consolidated notification into main job - Switch to softprops/action-gh-release for better release management This eliminates workflow conflicts and ensures changelog is updated only during version bumps (via changesets), making the release process clearer and more maintainable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds GitHub Actions workflow for automatic npm publishing when version bumps are merged to main via changesets.
Changes
New Workflow:
.github/workflows/publish.ymlTrigger: Version bump on main (when
package.jsonorCHANGELOG.mdchange)Pipeline:
npm run build)npm run typecheck)npm run benchmark)NPM_TOKENsecret)How It Works
Developer Flow
CI/CD Automation
Requirements
Benefits
Testing
To verify the workflow:
npm run changeset:addnpm run release:versionNotes
Generated by Claude Code