Chore: fixes detect breaking changes script on new packages (#110927)

(cherry picked from commit d5fdcad0b4)
This commit is contained in:
Hugo Häggmark 2025-09-11 09:44:17 +02:00 committed by GitHub
parent e9638b882d
commit 4463df8224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ while IFS=" " read -r -a package; do
continue
fi
# Skip packages that don't exist in the base (packages introduced in PR)
if [[ ! -f "./base/@$PACKAGE_PATH.tgz" ]]; then
continue
fi
# Extract the npm package tarballs into separate directories e.g. ./base/@grafana-data.tgz -> ./base/grafana-data/
mkdir "$PREV"
tar -xf "./base/@$PACKAGE_PATH.tgz" --strip-components=1 -C "$PREV"