Closed johlju closed 2 years ago
Maybe we could remove using the property ReleaseNotes
altogether on the command Publish-Module
since we update the module manifest will the release notes, it should use it and we don't see the warning
WARNING: ReleaseNotes is now supported in the module manifest file (.psd1). Update the module manifest file of module 'PasswordState' in 'E:\Users\johlju\PasswordState\output\builtModule\PasswordState\0.3.0' with the newest ReleaseNotes changes. You can run Update-ModuleManifest -ReleaseNotes to update the manifest with ReleaseNotes.
Yep, that seem to work much better, could remove several lines of code.
Problem description
The tasks
package_module_nupkg
andpublish_module_to_gallery
has a bug that makes a private Nuget feed show an invalid release notes string.Verbose logs
How to reproduce
Deploy a module to a private feed in Azure DevOps Server.
Expected behavior
Correctly show release notes.
Current behavior
Shows the invalid release notes, it outputs a hashtable instead of the release notes string.
Suggested solution
The code here: https://github.com/gaelcolas/Sampler/blob/41dd211b23884888bded75548367683237f3241e/.build/tasks/release.module.build.ps1#L222-L224
and here: https://github.com/gaelcolas/Sampler/blob/41dd211b23884888bded75548367683237f3241e/.build/tasks/release.module.build.ps1#L302-L304
Should be changed to:
Operating system the target node is running
PowerShell version and build the target node is running
Module version used