From 716a54500fe7cd8bd40eb5c4be5e39c51eebe0b6 Mon Sep 17 00:00:00 2001 From: "Peter Ombwa (from Dev Box)" Date: Mon, 12 Jan 2026 14:03:03 -0800 Subject: [PATCH 1/2] chore: Exclude tests from build artifacts. --- .azure-pipelines/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/release.yml b/.azure-pipelines/release.yml index 6015a4187d..5fc68c6df3 100644 --- a/.azure-pipelines/release.yml +++ b/.azure-pipelines/release.yml @@ -66,7 +66,7 @@ extends: # Pack Typescript sdk packages - - script: npm pack --pack-destination=$(Build.ArtifactStagingDirectory) --workspaces + - script: npm pack --pack-destination=$(Build.ArtifactStagingDirectory) --workspaces --workspace-exclude=@microsoft/msgraph-beta-sdk-tests displayName: 'Generate npm packages of the Typescript msgraph sdk' workingDirectory: '$(Build.SourcesDirectory)' From 4929a77c2a2344faaeadfbf74579a93ce21b9284 Mon Sep 17 00:00:00 2001 From: "Peter Ombwa (from Dev Box)" Date: Mon, 12 Jan 2026 15:54:25 -0800 Subject: [PATCH 2/2] chore: Exclude test package from build artifact. --- .azure-pipelines/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/release.yml b/.azure-pipelines/release.yml index 5fc68c6df3..a3f952592b 100644 --- a/.azure-pipelines/release.yml +++ b/.azure-pipelines/release.yml @@ -65,8 +65,14 @@ extends: filePath: './scripts/copy-readme.ps1' - # Pack Typescript sdk packages - - script: npm pack --pack-destination=$(Build.ArtifactStagingDirectory) --workspaces --workspace-exclude=@microsoft/msgraph-beta-sdk-tests + # Pack Typescript sdk packages (exclude tests package) + - script: | + for dir in packages/*/; do + pkg_name=$(basename "$dir") + if [ "$pkg_name" != "msgraph-beta-sdk-tests" ]; then + npm pack --pack-destination=$(Build.ArtifactStagingDirectory) -w "$dir" + fi + done displayName: 'Generate npm packages of the Typescript msgraph sdk' workingDirectory: '$(Build.SourcesDirectory)'