Commit d2a9021
authored
🩹 [Patch]: Require
## Description
This pull request includes several updates and improvements to the
`Publish-PSModule` function in the
`scripts/helpers/Publish-PSModule.ps1` file. The changes focus on
enhancing logging, error handling, and parameter management for
PowerShell Gallery operations.
Enhancements to logging and error handling:
* Added `Write-Output` statements to log the process of finding modules
and prerelease versions in the PowerShell Gallery.
[[1]](diffhunk://#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9R173-R177)
[[2]](diffhunk://#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L263-R275)
* Replaced `Write-Output $_` with `throw $_` to improve error handling
during retries.
Parameter management improvements:
* Introduced a hashtable `$params` to manage parameters for the
`Find-PSResource` cmdlet, improving code readability and
maintainability.
Minor corrections:
* Corrected the casing of `Write-GitHubNotice` from `Write-GithubNotice`
to ensure consistent function naming.
[[1]](diffhunk://#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L335-R347)
[[2]](diffhunk://#diff-780715ac24c6bbe21b54f3d268778136b79f21a62275bbd494dfa857b4ba40d9L376-R388)
Module dependencies:
* Added `PSSemVer` to the list of required modules in the script header.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] PSSemVer and improve logging (#44)1 parent 12425f8 commit d2a9021
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
| 175 | + | |
174 | 176 | | |
175 | | - | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
263 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
264 | 276 | | |
265 | 277 | | |
266 | 278 | | |
| |||
332 | 344 | | |
333 | 345 | | |
334 | 346 | | |
335 | | - | |
| 347 | + | |
336 | 348 | | |
337 | 349 | | |
338 | 350 | | |
| |||
373 | 385 | | |
374 | 386 | | |
375 | 387 | | |
376 | | - | |
| 388 | + | |
377 | 389 | | |
378 | 390 | | |
379 | 391 | | |
| |||
0 commit comments