From d8327ffe826f9d5bb8d5b8527b0ffccfc87cf7d5 Mon Sep 17 00:00:00 2001 From: Darren Hinde <107584450+darrenhinde@users.noreply.github.com> Date: Sat, 31 Jan 2026 02:11:19 +0000 Subject: [PATCH] fix: install dependencies in validation workflow (#152) The validation script requires the 'glob' package from devDependencies. Also improve error visibility by using tee to show output in logs. Fixes CI failures where validation script fails with module not found error. --- .github/workflows/validate-registry.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate-registry.yml b/.github/workflows/validate-registry.yml index 9ab4b35..caf1cba 100644 --- a/.github/workflows/validate-registry.yml +++ b/.github/workflows/validate-registry.yml @@ -120,6 +120,12 @@ jobs: with: bun-version: latest + - name: Install dependencies + if: github.event.inputs.skip_validation != 'true' + run: | + # Install root dependencies (glob package needed for validation script) + bun install --frozen-lockfile + - name: Make scripts executable if: github.event.inputs.skip_validation != 'true' run: | @@ -201,7 +207,8 @@ jobs: echo "" >> $GITHUB_STEP_SUMMARY # Use TypeScript validator (fast and reliable) - if bun run scripts/registry/validate-registry.ts > /tmp/validation-output.txt 2>&1; then + # Run validation and capture output (show in logs AND save to file) + if bun run scripts/registry/validate-registry.ts 2>&1 | tee /tmp/validation-output.txt; then echo "validation=passed" >> $GITHUB_OUTPUT echo "✅ All registry paths are valid!" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY @@ -215,6 +222,8 @@ jobs: echo "\`\`\`" >> $GITHUB_STEP_SUMMARY cat /tmp/validation-output.txt >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "**Check the logs above for detailed error output**" >> $GITHUB_STEP_SUMMARY exit 1 fi