From afbd693cf7c5c0f3f90c79fc7dfa384907eaf2c8 Mon Sep 17 00:00:00 2001 From: "Peter Ombwa (from Dev Box)" Date: Mon, 12 Jan 2026 15:46:30 -0800 Subject: [PATCH] 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 a62cf8e42fe..064ef4c85ed 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-sdk-tests + # Pack Typescript sdk packages (excludes private packages like tests) + - script: | + for dir in packages/*/; do + pkg_name=$(basename "$dir") + if [ "$pkg_name" != "msgraph-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)'