Skip to content

Conversation

@peombwa
Copy link
Member

@peombwa peombwa commented Feb 10, 2020

This PR adds ability to version and add release notes to modules independently.
The version numbers and release notes will be set as follows :

  • Generated modules : Version numbers and release notes are specified in a module's readme.md.
  • Authentication module : Its version number and release notes are specified in its PowerShell module manifest Microsoft.Graph.Authentication.psd1.
  • Meta-module : Its version number and release notes are specified in ModuleMetadata.json.

This PR also validates the current set version number on a module against what's on PowerShell Gallery. This is done by considering the following :

  • If a module is not found on PS Gallery, an new module is generated with a version number of 0.1.1.
  • If a module's version number is higher or lower, and is not valid (wrong segment increments), generation is stopped, and an error is thrown. e.g. 0.1.9 -> 0.2.1.
    image
  • If a module's version number is equal to what's on PS Gallery, then its generation is skipped, and a warning message is logged.
    image
  • If a module version number is considered valid (segment increments are valid), then the module is generated. e.g. 0.1.6 -> 0.2.0.

Closes #88
Unblocks #79

@peombwa peombwa self-assigned this Feb 10, 2020
Copy link
Contributor

@MIchaelMainer MIchaelMainer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questioned asked IRL

@peombwa peombwa merged commit 963ab93 into dev Feb 15, 2020
@peombwa peombwa deleted the po/independentModuleVersioning branch February 15, 2020 01:15
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.

Implement independent module versioning

4 participants