Skip to content

feat: ✨ publish prerelease builds to the powershell gallery - #485

Merged
jagger merged 2 commits into
devfrom
jagger/build-prerelease-gallery
Oct 28, 2026
Merged

jagger merged 2 commits into
devfrom
jagger/build-prerelease-gallery

Conversation

@jagger

@jagger jagger commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

build.ps1 -Configuration Prerelease only created a GitHub prerelease, so validators could not Install-Module -AllowPrerelease.
With -GalleryKey, it now also publishes to the PowerShell Gallery as a prerelease.
Before publishing, it throws if the manifest Prerelease label differs from -GitHubPreTag, or if that version is already on the Gallery.
Without -GalleryKey, Prerelease behaves as before.
gh release create now passes --target with the built commit, so a release built from a non-default branch tags what was built, not dev HEAD.
The release title is now the tag name.
0.62.0 was titled Thycotic.SecretServer 0.62.0 by the script, while 0.62.1 uses v0.62.1.
New releases get v0.63.0, and prereleases get v0.63.0-alpha2.
The target and title changes apply to Release builds too.

# manifest: ModuleVersion = '0.63.0', PSData.Prerelease = 'alpha1'
Invoke-Build -File ./build.ps1 -Configuration Prerelease -GitHubPreTag alpha1 -GalleryKey $key

0.63.0-alpha1 (PR #482) was published with the Gallery and --target changes, before the title fix.
The Gallery has it as a prerelease and still serves 0.62.1 by default.
The v0.63.0-alpha1 tag points at the built commit.

🤖 Generated with Claude Code

jagger and others added 2 commits October 28, 2026 09:55
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>
@jagger
jagger merged commit d6410a0 into dev Oct 28, 2026
4 checks passed
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.

1 participant