tmp-publish.ps1

$ErrorActionPreference = 'Stop'
Import-Module Microsoft.PowerShell.PSResourceGet -ErrorAction Stop
$key = $env:PSGallery_API_Key
if ([string]::IsNullOrWhiteSpace($key)) { throw 'PSGallery_API_Key not set' }
Publish-PSResource -Path $PSScriptRoot -ApiKey $key -Repository PSGallery -Verbose