Repository navigation
CI: publish to the PowerShell Gallery on version tags - #84
Merged
Merged
Conversation
release.yml runs on vX.Y.Z (or vX.Y.Z-label) tags. It reuses the CI test matrix (ci.yml gains workflow_call), then, in the production environment: checks the tag is on master and matches ModuleVersion/Prerelease, checks the CHANGELOG has a dated section, publishes with Publish-PSResource (Publish-Module fails to pack: the per-command tag list is over NuGet's 4000-character limit), and creates a GitHub Release from the CHANGELOG section. A re-run skips a version already on the Gallery. Setup and steps in CONTRIBUTING "Releasing". 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.
Pushing a
vX.Y.Ztag on master now publishes the module to the PowerShell Gallery..github/workflows/release.yml:ci.ymlgainsworkflow_callso the release workflow can reuse it.productionenvironment, it:ModuleVersionandPrerelease, and that the CHANGELOG has a dated section for the version;Publish-PSResource, sincePublish-Modulecan't pack this module: the per-command tag list is over NuGet's 4000-character limit;productionenvironment and its secret) and the release steps.Tested locally: the tag check passes for
v0.5.0and rejectsv0.5.1, the release notes are extracted correctly, and the Gallery lookup finds 0.4.16 but not 0.5.0.🤖 Generated with Claude Code