Skip to content
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

build(release): improve release logic #725

Closed
wants to merge 1 commit into from

Conversation

felipecrs
Copy link
Contributor

Changing the preset to conventionalcommits ensures that the commit message matches the current specification of Conventional Commits. Otherwise, the default is angular which is the AngularJS style. I always wanted that semantic-release shipped that by default, but unfortunately they don't have time to merge my PR.

It also allows to use things like fix!: drop support for something to indicate that the commit is a breaking change.

I also configured semantic-release with some things that I judge to be more optimal, like triggering releases when a production dependency gets updated, or a refactoring or performance improvement gets merged. I found many versions released with non helpful changelogs because of this, like v2.7.0, and v2.6.4.

It also reduces the clutter from the changelog messages by skipping the update of development dependencies.

To finalize, the new configuration improves the GitHub Releases, since they now will get the npm .tgz files as assets and there will be a link to the npmjs page of the release (like here).

I hope you like it! :)

@felipecrs
Copy link
Contributor Author

Oh, and by the way, I'm using most of these configs in the VSCode ShellCheck extension repository (along with the semantic-release-vsce plugin). So, feel free to browse the releases section of it to see some in action:

https://github.com/vscode-shellcheck/vscode-shellcheck/releases

@felipecrs
Copy link
Contributor Author

Not applicable any longer since #791.

@felipecrs felipecrs closed this Dec 3, 2022
@felipecrs felipecrs deleted the improve-release branch December 3, 2022 15:03
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.

None yet

1 participant