File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,13 +159,13 @@ function Build-PSModule {
159159 $ConfirmPreference = ' None'
160160 $WhatIfPreference = $false
161161
162- Register-PSRepository - Name BuildOutput - SourceLocation $outputPath - PublishLocation $outputPath - InstallationPolicy Trusted * > $null
162+ Register-PSResourceRepository - Name BuildOutput - Uri $outputPath - Trusted * > $null
163163
164164 try {
165- Publish-Module - Path $outputModulePath - Repository BuildOutput - Force - SkipDependencyCheck * > $null
165+ Publish-PSResource - Path $outputModulePath - Repository BuildOutput - SkipDependenciesCheck * > $null
166166 }
167167 finally {
168- Unregister-PSRepository - Name BuildOutput * > $null
168+ Unregister-PSResourceRepository - Name BuildOutput * > $null
169169 }
170170
171171 return " $outputPath \$moduleName .$version .nupkg"
You can’t perform that action at this time.
0 commit comments