Skip to content
Snippets Groups Projects

feat(semantic-release): don't build changelog on prerelease branches

Merged Daniel Dehennin requested to merge feature/semantic-release-with-prerelease-branches into dev

feat(semantic-release): don't build changelog on prerelease branches

By default, semantic-release build changelog even for prerelease branches which looks like duplicated entries to users.

Use a workaround to avoid changelog generation for prerelease branches by building the configuration in several steps instead of a direct module.exports at the top.

There are no effect on this project since the branches configuration attribute only contains stable but can be used for other project with the only change to declare prerelease branches.

  • release.config.js: rework the configuration file to conditionnally execute @semantic-release/changelog and add its assets to the git plugin.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading