feat: implement semantic-release with commit message validation for automated versioning and publishing#23
Merged
8enSmith merged 6 commits intofeat/npm-infofrom Aug 4, 2025
Conversation
Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com>
Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] I want my project to make use of @semantic-release/semantic-release
feat: implement semantic-release for automated versioning and publishing
Aug 2, 2025
8enSmith
reviewed
Aug 2, 2025
Owner
8enSmith
left a comment
There was a problem hiding this comment.
Looks good so far but I've left a few comments.
…ument required secrets Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com>
8enSmith
reviewed
Aug 2, 2025
Owner
8enSmith
left a comment
There was a problem hiding this comment.
Good addition. Please see my additional comment regarding commit message formatting.
- Expanded README with detailed conventional commit format explanation - Added @commitlint/cli and @commitlint/config-conventional for validation - Created commitlint.config.cjs with strict conventional commit rules - Added commit-msg hook to automatically validate commit messages - Added commitlint script to package.json for manual validation - Documented importance of commit format for semantic versioning Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com>
Copilot
AI
changed the title
feat: implement semantic-release for automated versioning and publishing
feat: implement semantic-release with commit message validation for automated versioning and publishing
Aug 2, 2025
8enSmith
added a commit
that referenced
this pull request
Aug 4, 2025
* feat: add info wrt npm * feat: implement semantic-release with commit message validation for automated versioning and publishing (#23) * Initial plan * Initial analysis: Plan semantic-release implementation Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com> * feat: implement semantic-release for automated versioning and publishing Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com> * fix: address PR feedback - remove CHANGELOG.md from gitignore and document required secrets Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com> * docs: enhance commit message format documentation and add validation - Expanded README with detailed conventional commit format explanation - Added @commitlint/cli and @commitlint/config-conventional for validation - Created commitlint.config.cjs with strict conventional commit rules - Added commit-msg hook to automatically validate commit messages - Added commitlint script to package.json for manual validation - Documented importance of commit format for semantic versioning Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com> * feat: add semantic-release dry-run script --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: 8enSmith <798183+8enSmith@users.noreply.github.com>
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.
This PR implements semantic-release for automated versioning and publishing of the mcp-open-library package, with automatic commit message validation to ensure reliable releases.
What's Changed
🚀 Semantic Release Configuration
.releaserc.jsonconfiguration for automatic versioning based on conventional commitssemantic-releasescript to package.json🔄 GitHub Actions Workflows
🔒 Commit Message Validation
@commitlint/cliand@commitlint/config-conventionalfor automatic validationnpm run commitlintscript for manual validation📚 Enhanced Documentation
How It Works
The project now provides a complete automated release pipeline:
Conventional Commit Format
The system enforces strict conventional commit formatting:
feat:- new features (minor version bump: 1.0.0 → 1.1.0)fix:- bug fixes (patch version bump: 1.0.0 → 1.0.1)feat!:orfix!:- breaking changes (major version bump: 1.0.0 → 2.0.0)docs:,style:,refactor:,test:,chore:- no version bumpInvalid commit messages are automatically rejected before reaching the repository, preventing release failures.
Security & Safety
mainbranch for securityGITHUB_TOKENandNPM_TOKENsecrets to be configuredTesting
All existing functionality remains unchanged with comprehensive validation:
This implementation follows semantic-release best practices and integrates seamlessly with the existing development workflow while ensuring release reliability through commit validation.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.