Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

New-ConfigurationRelease

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.ConfigurationReleaseSegment

Creates repo-level release coordination settings for a module and package build.

Remarks

Creates repo-level release coordination settings for a module and package build.

Examples

Authored help example

EXAMPLE 1


New-ConfigurationRelease -BuildOrder @('Value')
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ConfigurationRelease [-BuildOrder <String[]>] [-PrimaryProject <String>] [-PublishOrder <String[]>] [-ResumeIncompleteRelease] [-StageRoot <String>] [-SynchronizeModuleVersion] [-Version <String>] [-VersionSource <Module|ProjectBuild|PackageBuild|Manual>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

BuildOrder String[] optionalposition: namedpipeline: False
Preferred build order for high-level release lanes.
PrimaryProject String optionalposition: namedpipeline: False
Primary package/project used when the version source is a package/project build. Required by SynchronizeModuleVersion to identify the package coordinated with module history.
PublishOrder String[] optionalposition: namedpipeline: False
Preferred publish order for destinations such as NuGet, PowerShellGallery, and GitHub.
ResumeIncompleteRelease SwitchParameter optionalposition: namedpipeline: False
Explicitly resumes a compatible incomplete synchronized release checkpoint. Without this switch, an older checkpoint is archived and the invocation starts a fresh release.
StageRoot String optionalposition: namedpipeline: False
Staged release root where upload-ready assets should be copied.
SynchronizeModuleVersion SwitchParameter optionalposition: namedpipeline: False
Coordinates the module and selected primary package on one version. This is enabled automatically when VersionSource is ProjectBuild or PackageBuild and PrimaryProject is configured. The next available module version becomes a floor for the primary package; a higher numeric package version still wins. At the same numeric version, a stable X-pattern candidate does not erase the configured module prerelease; explicit prerelease versions retain normal semantic-version ordering. PrimaryProject is required, and exactly one selected lane must run before the module and use UseAsReleaseVersionSource. Package groups using AlignPackageVersions are raised together. Publish runs persist a credential-free checkpoint for optional recovery. A normal invocation archives an incomplete checkpoint and starts fresh; use ResumeIncompleteRelease to retain the exact versions and skip destinations that already completed.
Version String optionalposition: namedpipeline: False
Explicit release version used when VersionSource is Manual.
VersionSource ReleaseVersionSource optionalposition: namedpipeline: Falsevalues: 4
Source used to resolve the coordinated release version.
Possible values: Module, ProjectBuild, PackageBuild, Manual

Outputs

PowerForge.ConfigurationReleaseSegment