Skip to content

Commit 4416d33

Browse files
committed
Tweaked NuGet API Key prompt message. Also added some output text just before calling Publish-Module to see where in the Publish task it occassionally hangs. Although now that I put this text in, it doesn't appear to hang on me now. Go figure.
1 parent 1b9cae6 commit 4416d33

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

examples/.vscode/tasks.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,39 @@
4949
{
5050
"taskName": "Clean",
5151
"suppressTaskName": true,
52+
"showOutput": "always",
5253
"args": [
5354
"Write-Host 'Invoking PSake...'; Invoke-PSake build.ps1 -taskList Clean;",
54-
"Invoke-Command { Write-Host \"Completed Clean task in task runner.\" }"
55+
"Invoke-Command { Write-Host 'Completed Clean task in task runner.' }"
5556
]
5657
},
5758
{
5859
"taskName": "Build",
5960
"suppressTaskName": true,
6061
"isBuildCommand": true,
62+
"showOutput": "always",
6163
"args": [
6264
"Write-Host 'Invoking PSake...'; Invoke-PSake build.ps1 -taskList Build;",
63-
"Invoke-Command { Write-Host \"Completed Build task in task runner.\" }"
65+
"Invoke-Command { Write-Host 'Completed Build task in task runner.' }"
6466
]
6567
},
6668
{
6769
"taskName": "Publish",
6870
"suppressTaskName": true,
71+
"showOutput": "always",
6972
"args": [
7073
"Write-Host 'Invoking PSake...'; Invoke-PSake build.ps1 -taskList Publish;",
71-
"Invoke-Command { Write-Host \"Completed Publish task in task runner.\" }"
74+
"Invoke-Command { Write-Host 'Completed Publish task in task runner.' }"
7275
]
7376
},
7477
{
7578
"taskName": "Test",
7679
"suppressTaskName": true,
7780
"isTestCommand": true,
81+
"showOutput": "always",
7882
"args": [
7983
"Write-Host 'Invoking Pester...'; Invoke-Pester -PesterOption @{IncludeVSCodeMarker=$true};",
80-
"Invoke-Command { Write-Host \"Completed Test task in task runner.\" }"
84+
"Invoke-Command { Write-Host 'Completed Test task in task runner.' }"
8185
],
8286
"problemMatcher": [
8387
{

examples/Build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Task PublishImpl -depends Test -requiredVariables PublishDir, EncryptedApiKeyPat
134134
$publishParams['ReleaseNotes'] = @(Get-Content $ReleaseNotesPath)
135135
}
136136

137+
"Calling Publish-Module..."
137138
Publish-Module @publishParams -WhatIf
138139
}
139140

@@ -201,7 +202,7 @@ function Get-NuGetApiKey($NuGetApiKey, $EncryptedApiKeyPath) {
201202
Write-Verbose "Retrieved encrypted NuGetApiKey from $EncryptedApiKeyPath"
202203
}
203204
else {
204-
$cred = Get-Credential -Message "Enter your NuGet API Key in the password field" -UserName "user"
205+
$cred = Get-Credential -Message "Enter your NuGet API Key in the password field (or nothing, this isn't used yet in the preview)" -UserName "user"
205206
$apiKeySS = $cred.Password
206207
$NuGetApiKey = $cred.GetNetworkCredential().Password
207208
}

0 commit comments

Comments
 (0)