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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user