0008 Each module is released on its own¶
Context and Problem Statement¶
The repository builds several modules. People install them with Install-PSResource from the
PowerShell Gallery (#4). How are they versioned and published?
Considered Options¶
- One version and one release for all modules (not discussed in a source).
- One version, CHANGELOG and release per module.
Decision Outcome¶
Chosen option: one release per module, from a tag <Module>-v<Version>.
- Each module keeps its own SemVer
ModuleVersionandCHANGELOG.md. release.ymltests, builds and checks the tagged module without secrets. Only after a maintainer approves the environmentpsgallery, which holds the gallery key, does a second job publish it (#25).- Only a commit on main is released, never one of a branch (#29).
Why one release per module: reason not recorded. The reason recorded in #29 for the main check: the
publishing job runs the tagged commit's Publish-Module.ps1 with the gallery key, and a tag on a
branch would run that branch's unreviewed script.
The versioning page says when an update can break an app.
Consequences¶
- Good: a fix to one module does not release the others.
- Bad: a demo module requires a minimum version of its component module, so a release of the demo can depend on one of the component module.