dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.62k stars 801 forks source link

Better Release Workflow #896

Open dahlbyk opened 2 years ago

dahlbyk commented 2 years ago

Alright, now that 1.1.0 is out the door I would love for this to be the last manual release.

Since @bergmeister proposed #698 2½ years ago, how has the state-of-the-art evolved in terms of easily and consistently building and releasing PS modules (or any versioned software, really - I'm an "always deploy main" web guy)?

manmartgarc commented 2 years ago

Happy to spend some time on this in the near future

Nixxen commented 2 years ago
  • Updating CHANGELOG.md is always a chore

    • Anyone have or know of a pattern they like for automating release notes?

Disclaimer: I have not worked with automated release notes, but have heard it mentioned in conversations related to DevOps. I figured I'd chime in with what I've found in the hopes that it is helpful for further work. From what I remember from these conversations, the key has been flags in the git commits that trigger either changelog updates or if no tag is found, the updater/action ignored the commit and passes it as a "silent" update. Versioning is updated automatically, and "in-between" commits get flagged as such.

I did a cursory search and found several mentions of such systems. One example of something that looks promising is git-cCliff. Examples of individual release changelogs can be seen on their releases page, or the entire history on their entire changelog.

If you compare the commit history with the changelogs you can see which tags they have decided to include in their releases (the project allows for any of the tags in their readme, but only some are included due to their preferences).