Skip to content

Commit

Permalink
ci: do not try to publish directories that are not packages (angular#…
Browse files Browse the repository at this point in the history
…41393)

We now include `misc/angular-in-memory-web-api` in the packages that
are build in the `dist/packages-dist` directory. But this package should
not be published as an artifact.

This commit prevents attempting to publishing the `misc` directory by
first checking whether the directory contains a `package.json` file.

PR Close angular#41393
  • Loading branch information
petebacondarwin authored and TeriGlover committed Apr 5, 2021
1 parent 8ffa376 commit e2c62c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ci/publish-build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ function publishPackages {

for dir in $PKGS_DIST/*/
do
if [[ ! -f "$dir/package.json" ]]; then
# Only publish directories that contain a `package.json` file.
echo "Skipping $dir, it does not contain a package to be published."
continue
fi

COMPONENT="$(basename ${dir})"

# Replace _ with - in component name.
Expand Down

0 comments on commit e2c62c5

Please sign in to comment.