Skip to content

Commit 53797c2

Browse files
committed
Update per PR comments
1 parent 277e805 commit 53797c2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

eng/pipelines/templates/jobs/vsix/release-vsix.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ jobs:
5757
5858
$baseName = Get-ChildItem *.vsix | Select-Object -ExpandProperty BaseName -First 1
5959
60-
$args = @('--azure-credential', "--packagePath `"$baseName.vsix`"", "--manifestPath `"$baseName.manifest`"", "--signaturePath `"$baseName.signature.p7s`"")
60+
$publishArgs = @('--azure-credential', "--packagePath `"$baseName.vsix`"", "--manifestPath `"$baseName.manifest`"", "--signaturePath `"$baseName.signature.p7s`"")
6161
if ($server.vsixIsPrerelease) {
62-
$args += '--pre-release'
62+
$publishArgs += '--pre-release'
6363
}
6464
65-
$publishCmd = "vsce publish $($args -join ' ')"
66-
6765
Write-Host @"
6866
Server: $($server.name)
6967
Version: $($server.version)
@@ -72,12 +70,12 @@ jobs:
7270
Is Prerelease: $($server.vsixIsPrerelease)
7371
7472
Publish arguments:
75-
$($args -join '`n ')
73+
$($publishArgs -join "`n ")
7674
"@
7775
7876
Write-Host ''
7977
Write-Host 'Installing vsce...'
8078
npm install -g @vscode/vsce
8179
82-
Write-Host "Executing: $publishCmd"
83-
Invoke-Expression $publishCmd
80+
Write-Host "Executing: vsce publish $($publishArgs -join ' ')"
81+
vsce publish @publishArgs

0 commit comments

Comments
 (0)