Skip to content

Commit 4929a77

Browse files
committed
chore: Exclude test package from build artifact.
1 parent 716a545 commit 4929a77

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.azure-pipelines/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ extends:
6565
filePath: './scripts/copy-readme.ps1'
6666

6767

68-
# Pack Typescript sdk packages
69-
- script: npm pack --pack-destination=$(Build.ArtifactStagingDirectory) --workspaces --workspace-exclude=@microsoft/msgraph-beta-sdk-tests
68+
# Pack Typescript sdk packages (exclude tests package)
69+
- script: |
70+
for dir in packages/*/; do
71+
pkg_name=$(basename "$dir")
72+
if [ "$pkg_name" != "msgraph-beta-sdk-tests" ]; then
73+
npm pack --pack-destination=$(Build.ArtifactStagingDirectory) -w "$dir"
74+
fi
75+
done
7076
displayName: 'Generate npm packages of the Typescript msgraph sdk'
7177
workingDirectory: '$(Build.SourcesDirectory)'
7278

0 commit comments

Comments
 (0)