Skip to content

Commit 2a8e765

Browse files
authored
Build and publish symbol nuget packages (#367)
1 parent 259936d commit 2a8e765

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.ado/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
ConnectedServiceName: ESRP-JsHost2
224224
FolderPath: $(Build.SourcesDirectory)/out/pkg
225225
Pattern: |
226-
**/Microsoft.JavaScript.NodeApi.*.nupkg
226+
**/Microsoft.JavaScript.NodeApi.*.*nupkg
227227
UseMinimatch: true
228228
signConfigType: inlineSignParams
229229
inlineOperation: |
@@ -250,7 +250,7 @@ jobs:
250250
sourceFolder: $(Build.SourcesDirectory)/out/pkg
251251
targetFolder: $(Build.StagingDirectory)/pkg
252252
contents: |
253-
*.nupkg
253+
*.*nupkg
254254
*.tgz
255255
256256
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
name: ${{ matrix.os }}-${{ matrix.configuration }}-packages
7474
path: |
75-
out/pkg/*.nupkg
75+
out/pkg/*.*nupkg
7676
out/pkg/*.tgz
7777
7878
- name: Test

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
2424
</PropertyGroup>
2525

26+
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
27+
<IncludeSymbols>true</IncludeSymbols>
28+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
29+
</PropertyGroup>
30+
2631
<PropertyGroup Condition=" '$(PublishAot)' == 'true' ">
2732
<!-- Modify the build output paths when publishing for AOT. This enables separately compiling
2833
AOT and non-AOT flavors of the same project, which is necessary because .NET 8 blocks

0 commit comments

Comments
 (0)