Skip to content

Commit 23dbb13

Browse files
authored
Merge pull request #946 from microsoftgraph/u/peombwa/excludeTestsFromArtifacts
chore: Exclude test package from build artifact
2 parents c5bc975 + afbd693 commit 23dbb13

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.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-sdk-tests
68+
# Pack Typescript sdk packages (excludes private packages like tests)
69+
- script: |
70+
for dir in packages/*/; do
71+
pkg_name=$(basename "$dir")
72+
if [ "$pkg_name" != "msgraph-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)