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

Better Release Workflow #896

Open
dahlbyk opened this issue Mar 31, 2022 · 2 comments
Open

Better Release Workflow #896

dahlbyk opened this issue Mar 31, 2022 · 2 comments

Comments

@dahlbyk
Copy link
Owner

dahlbyk commented Mar 31, 2022

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)?

  • As of Add a GitHub workflow #878 we have replaced Travis and AppVeyor
  • I would love to be able to tag a Release in GH and have it automatically publish to PSGallery
  • Updating CHANGELOG.md is always a chore
    • Anyone have or know of a pattern they like for automating release notes?
    • Should what's been in CHANGELOG migrate to the GitHub Release, maybe with a vNext Release draft opened to collect changes as they arrive?
  • How do we retain a good workflow for the various ways people install posh-git?
    • Local clone in random folder; Import-Module ~/path/to/clone/of/posh-git/posh-git.psd1
    • Clone into a path in $env:PSModulePath
    • Install module for current user
    • Install module for all users
    • Import clone or whatever even if a different version is installed for all users (Enhancement: bundle posh-git? git-for-windows/git#1384)
    • Chocolatey?
    • WinGet?
@manmartgarc
Copy link

Happy to spend some time on this in the near future

@Nixxen
Copy link

Nixxen commented Apr 21, 2022

  • 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).

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

No branches or pull requests

3 participants