natescherer / publish-powershell-action

A GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.
MIT License
11 stars 4 forks source link

Added Unregister-PSResourceRepository for cleanup #9

Closed Galvill closed 1 year ago

Galvill commented 1 year ago

At the beginning of the process, the repository is registered. If you try to publish again, the process fails because the repository is already registered. I have added a cleanup line to unregister the repository after publishing.

natescherer commented 1 year ago

Good catch! Sorry this took so long for me to merge. This'll go out in a new version shortly.

natescherer commented 1 year ago

@all-contributors please add @Galvill for code

allcontributors[bot] commented 1 year ago

@natescherer

I've put up a pull request to add @Galvill! :tada:

natescherer commented 1 year ago

This is now released as part of v1.1.0!