ci: publish tarballs for the zone.js package as CI build artifacts (#33733)
Since #33321, Angular packages have been persisted on each build as CircleCI build artifacts (`.tgz` files), which can be used to install dependencies on a project (for the purpose of testing or trying out a change before a PR being merged and without having to build the packages from source locally). Previously, only packages published to npm under the `@angular` scope were persisted as build artifacts. This commit adds the `zone.js` package to the list of persisted packages. Fixes #33686 PR Close #33733
This commit is contained in:

committed by
Kara Erickson

parent
74b7d1ace1
commit
2ce9cdab9d
@ -15,11 +15,14 @@ echo " Preparing output directory: $outputDir"
|
||||
rm -rf "$outputDir"
|
||||
mkdir -p "$outputDir"
|
||||
|
||||
# Create a compressed archive containing all packages.
|
||||
# (This is useful for copying all packages into `node_modules/` (without changing `package.json`).)
|
||||
outputFileName=all$fileSuffix
|
||||
echo " Creating archive with all packages --> '$outputFileName'..."
|
||||
tar --create --gzip --directory "$inputDir" --file "$outputDir/$outputFileName" --transform s/^\./packages/ .
|
||||
# If there are more than one packages in `$inputDir`...
|
||||
if [[ $(ls -1 "$inputDir" | wc -l) -gt 1 ]]; then
|
||||
# Create a compressed archive containing all packages.
|
||||
# (This is useful for copying all packages into `node_modules/` (without changing `package.json`).)
|
||||
outputFileName=all$fileSuffix
|
||||
echo " Creating archive with all packages --> '$outputFileName'..."
|
||||
tar --create --gzip --directory "$inputDir" --file "$outputDir/$outputFileName" --transform s/^\./packages/ .
|
||||
fi
|
||||
|
||||
# Create a compressed archive for each package.
|
||||
# (This is useful for referencing the path/URL to the resulting archive in `package.json`.)
|
||||
|
Reference in New Issue
Block a user