Skip to content

Commit 3429f67

Browse files
committed
fix package publish logic
1 parent b66ab87 commit 3429f67

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

eng/publish/PublishVSCodeExtension.ps1

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,14 @@ try {
2929

3030
# publish nuget
3131
if ($vscodeTarget -eq "stable") {
32-
$nugetPackages = @(
33-
'Microsoft.dotnet-interactive',
34-
'Microsoft.DotNet.Interactive',
35-
'Microsoft.DotNet.Interactive.CSharp',
36-
'Microsoft.DotNet.Interactive.Documents',
37-
'Microsoft.DotNet.Interactive.ExtensionLab',
38-
'Microsoft.DotNet.Interactive.Formatting',
39-
'Microsoft.DotNet.Interactive.FSharp',
40-
'Microsoft.DotNet.Interactive.Http',
41-
'Microsoft.DotNet.Interactive.Journey',
42-
'Microsoft.DotNet.Interactive.Kql',
43-
'Microsoft.DotNet.Interactive.PackageManagement',
44-
'Microsoft.DotNet.Interactive.PowerShell',
45-
'Microsoft.DotNet.Interactive.SqlServer'
46-
)
47-
$nugetPackages | ForEach-Object {
48-
$nugetPackagePath = "$artifactsPath\packages\Shipping\$_.*.nupkg"
49-
dotnet nuget push $nugetPackagePath --source https://api.nuget.org/v3/index.json --api-key $nugetToken --no-symbols 1
50-
if ($LASTEXITCODE -ne 0) {
51-
exit $LASTEXITCODE
32+
Get-ChildItem "$artifactsPath\packages\Shipping\Microsoft.DotNet*.nupkg" | ForEach-Object {
33+
$nugetPackagePath = $_.ToString()
34+
# don't publish asp or netstandard packages
35+
if (-Not ($nugetPackagePath -match "(AspNetCore|Netstandard20)")) {
36+
dotnet nuget push $nugetPackagePath --source https://api.nuget.org/v3/index.json --api-key $nugetToken --no-symbols 1
37+
if ($LASTEXITCODE -ne 0) {
38+
exit $LASTEXITCODE
39+
}
5240
}
5341
}
5442
}

0 commit comments

Comments
 (0)