CI: Fix frontend package validation (#116104)

* ci(frontend-lint): add frontend package change detection and add validate packed packages lint step

* ci(change-detection): add validate-npm-packages.sh to frontend-packages list

* ci(gh-workflows): add actions globs to frontend-packages detection

* ci(gh-workflows): fix typo - > _

* ci(frontend-lint): add missing needs

* chore(i18n): fix publint erroring for custom condition pointing to .cjs file

* ci(validate-npm-packages): make profile node16 default

* chore(validate-npm-packages): remove shellcheck disable comment
This commit is contained in:
Jack Westbrook
2026-01-12 16:08:32 +01:00
committed by GitHub
parent 51dcdd3499
commit 23a51ec9c5
5 changed files with 50 additions and 40 deletions
+1 -7
View File
@@ -11,13 +11,7 @@ failed_checks=()
for file in "$ARTIFACTS_DIR"/*.tgz; do
echo "🔍 Checking NPM package: $file"
# TODO: Fix the error with @grafana/i18n/eslint-resolution
if [[ "$file" == *"@grafana-i18n"* ]]; then
ATTW_FLAGS="--profile node16"
fi
# shellcheck disable=SC2086
if ! NODE_OPTIONS="-C @grafana-app/source" yarn attw "$file" --ignore-rules "false-cjs" $ATTW_FLAGS; then
if ! NODE_OPTIONS="-C @grafana-app/source" yarn attw "$file" --ignore-rules "false-cjs" --profile "node16"; then
echo "attw check failed for $file"
echo ""
failed_checks+=("$file - yarn attw")