Skip to content

Add commitlint #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Add commitlint #77

merged 3 commits into from
Feb 6, 2025

Conversation

cwillisf
Copy link
Contributor

@cwillisf cwillisf commented Feb 6, 2025

Proposed Changes

Add commitlint as a devDependency and hook it up to run at commit time and on pull requests.

Reason for Changes

This will help make sure semantic-release can generate a change list for releases.

Test Coverage

Tested by making this PR :)

On non-release branches, it will automatically do a dry run
Copy link
Contributor

@MichalPawlicki MichalPawlicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment, otherwise looks good. 🙂

@@ -15,11 +15,7 @@ jobs:
- name: Run Tests
run: npm test
- name: Semantic Release
if: github.ref_name == 'master'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the condition? Won't it result in publishing a release on every push to every branch, e.g. develop?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

semantic-release has a config file that controls which branches it publishes from. If it runs against a branch that isn't in the release config, it'll do a dry run. I like to enable that since it can help highlight changes that break semantic-release before they're merged.

@cwillisf cwillisf merged commit 128f81e into develop Feb 6, 2025
2 checks passed
@cwillisf cwillisf deleted the commitlint branch February 6, 2025 17:13
Copy link

github-actions bot commented Feb 6, 2025

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants