Publish.ps1
|
$path = 'C:\Users\dj\te-git\proserv\powershell-module' $PublishParams = @{ NuGetApiKey = '1ada6e7e-8660-4a1d-b056-872e583b7bf1' Path = 'C:\Users\dj\te-git\proserv\powershell-module' } # We install and run PSScriptAnalyzer against the module to make sure it's not failing any tests Install-Module -Name PSScriptAnalyzer -force Invoke-ScriptAnalyzer -Path $Path # ScriptAnalyzer passed! Let's publish Publish-Module @PublishParams # The module is now listed on the PowerShell Gallery Find-Module TEApi |