The Publish task requires the API Key or Credential to be set but not both.
Expected Behavior
If I have provided credentials to the build and an API key I expect them to be both used.
Current Behavior
If an API Key is provided then the credentials are not used. Because the PowerShellGet cmdlets appear to be broken with regards to authentication (https://github.com/PowerShell/PowerShellGet/issues/433) you need to supply credentials with each cmdlet.
Allowing the use of both the API Key and Credentials would circumvent this.
Possible Solution
In the Publish task amend the code to use both API Key and Credential if supplied. If the PowerShellGet issues are resolved this will still not hurt.
Context
I can't publish the module to a private authenticated feed.
Your Environment
Module version used: 0.3.1
Operating System and PowerShell version: Windows 10
The Publish task requires the API Key or Credential to be set but not both.
Expected Behavior
If I have provided credentials to the build and an API key I expect them to be both used.
Current Behavior
If an API Key is provided then the credentials are not used. Because the PowerShellGet cmdlets appear to be broken with regards to authentication (https://github.com/PowerShell/PowerShellGet/issues/433) you need to supply credentials with each cmdlet.
Allowing the use of both the API Key and Credentials would circumvent this.
Possible Solution
In the Publish task amend the code to use both API Key and Credential if supplied. If the PowerShellGet issues are resolved this will still not hurt.
Context
I can't publish the module to a private authenticated feed.
Your Environment