feat: prerelease support, CI/CD branching & PSScriptAnalyzer#9
Merged
Conversation
Prerelease Support: - Uncomment Prerelease field in .psd1 manifest and fixtures - Add 'Prerelease' to Update-ManifestField ValidateSet with PSGallery validation - Add 'Prerelease' to $Script:SupportedManifestFields - Add -Prerelease parameter to build.ps1 for prerelease builds CI/CD Enhancements: - Split workflow into test (matrix) + build-and-publish (single runner) jobs - Add develop branch triggers for prerelease publishing - Add PS 5.1 matrix entry (windows-latest/powershell) - Add Pester + PSScriptAnalyzer caching (actions/cache) - Add PSScriptAnalyzer step to test job - Set Prerelease tag on develop push, strip on main push - Add DOTNET_CLI_UI_LANGUAGE=en for publish step - Add skip-duplicate (409) error handling for Publish-Module Code Quality: - Fix UTF-8 BOM encoding on 7 private function files - Fix trailing whitespace in .psd1 - Rename $Matches to $AliasMatches in Get-AliasesFromFile (automatic variable) - Add PSScriptAnalyzerSettings.psd1 with intentional suppressions Tests: - Add 5 new Prerelease tests for Update-ManifestField (306 total) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update-ManifestFieldcan now set/clear thePrereleasefield in.psd1manifests.build.ps1gains a-Prereleaseparameter for prerelease builds.test(3-way matrix: ubuntu/pwsh, windows/pwsh, windows/ps5.1) +build-and-publishjobs.developpushes publish prerelease versions (preview{N}),mainpushes publish stable versions.DOTNET_CLI_UI_LANGUAGE=en, skip-duplicate (409) handling.Test plan
./build.ps1 -Cleansucceeds (dogfooding)./build.ps1 -Clean -Prerelease 'preview1'sets Prerelease correctly in dist manifest🤖 Generated with Claude Code