Repository navigation
feat: ✨ publish prerelease builds to the powershell gallery - #485
Merged
Merged
Conversation
build.ps1 -Configuration Prerelease only created a GitHub prerelease. With -GalleryKey it now also publishes the module to the PowerShell Gallery as a prerelease, after checking that the manifest Prerelease label matches -GitHubPreTag and that the version is not already there. Without -GalleryKey it behaves as before. gh release create now passes --target with the built commit, so the tag points at what was built instead of the default branch head. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Releases were titled "Thycotic.SecretServer 0.62.0" while 0.62.1 was titled "v0.62.1". The title now matches the tag, for example v0.63.0 or v0.63.0-alpha2. Co-Authored-By: Claude Opus 5.5 <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.
build.ps1 -Configuration Prereleaseonly created a GitHub prerelease, so validators could notInstall-Module -AllowPrerelease.With
-GalleryKey, it now also publishes to the PowerShell Gallery as a prerelease.Before publishing, it throws if the manifest
Prereleaselabel differs from-GitHubPreTag, or if that version is already on the Gallery.Without
-GalleryKey, Prerelease behaves as before.gh release createnow passes--targetwith the built commit, so a release built from a non-default branch tags what was built, notdevHEAD.The release title is now the tag name.
0.62.0 was titled
Thycotic.SecretServer 0.62.0by the script, while 0.62.1 usesv0.62.1.New releases get
v0.63.0, and prereleases getv0.63.0-alpha2.The target and title changes apply to Release builds too.
0.63.0-alpha1 (PR #482) was published with the Gallery and
--targetchanges, before the title fix.The Gallery has it as a prerelease and still serves 0.62.1 by default.
The
v0.63.0-alpha1tag points at the built commit.🤖 Generated with Claude Code