TBD54566975 / tbdex

56 stars 26 forks source link

fix: simplify json format/validation action #372

Closed lamchau closed 2 months ago

lamchau commented 3 months ago

Simplified the GitHub Actions workflow in PR #364 😅. This update also fixes an issue where just was missing in the hermit setup, which the previous workflow didn’t catch.

Since just format inherently includes just lint, we can just consolidate that into a single action.

This change removes much of the automation introduced in the earlier PR, placing the responsibility on the author to ensure well-formed JSON is committed to the repository. The original intent was to automate formatting when directly modifying JSON files via the GitHub web interface (bypassing the pre-commit hook). However, after reconsideration, this is likely not the most common workflow and might not be something we should encourage anyway.

Note: We still only check hosted/*.json which are the only assets published to tbdex.dev.