🩹 [Patch]: Prerelease cleanup no longer depends on module artifact#400
Merged
Marius Storhaug (MariusStorhaug) merged 7 commits intoJul 18, 2026
Merged
Conversation
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Run prerelease cleanup independently when no module artifact is produced by gating publish-only steps behind CreateRelease and driving cleanup behavior from ReleaseType. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove CreateRelease input and gate publish steps directly on ReleaseType so None means no release flow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Extract prerelease cleanup from Publish-PSModule into Cleanup-PSModulePrereleases and wire Publish-Module workflow to run publish and cleanup as separate scenario-gated steps. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run prerelease cleanup independently when no module artifact is produced by gating publish-only steps behind CreateRelease and driving cleanup behavior from ReleaseType. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove CreateRelease input and gate publish steps directly on ReleaseType so None means no release flow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Extract prerelease cleanup from Publish-PSModule into Cleanup-PSModulePrereleases and wire Publish-Module workflow to run publish and cleanup as separate scenario-gated steps. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Marius Storhaug (MariusStorhaug)
force-pushed
the
decouple-prerelease-cleanup
branch
from
July 18, 2026 20:46
3da88df to
31938e2
Compare
Use Settings.Publish.Module.Resolution.ReleaseType in Publish-Module workflow to match the enriched settings shape from Plan.yml. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.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.
Prerelease cleanup now runs as an independent workflow action, so publish logic and cleanup logic can execute in the right scenarios without being coupled to module artifact download.
Changed: Publish and cleanup are now separate actions
Publish-PSModulenow only performs artifact download and publish/release work, while cleanup moved into a dedicatedCleanup-PSModulePrereleasesaction.Fixed: No-build cleanup paths no longer depend on publish action internals
Publish-Module.ymlnow runs publish only whenReleaseType != 'None', and runs cleanup independently whenReleaseType != 'Prerelease'with existing AutoCleanup and WhatIf controls.Technical Details
.github/actions/Publish-PSModule/action.yml..github/actions/Cleanup-PSModulePrereleases/with its own composite action and cleanup script..github/workflows/Publish-Module.ymlto call the two actions as separate, scenario-gated steps.PSMODULE_PUBLISH_PSMODULE_CONTEXT_ReleaseTaginto the cleanup action when publish ran earlier in the job.Related issues