Skip to content

Extract the CI validator into a script contributors can run locally #30

Description

@AnayDhawan

The validation logic lives inline in a heredoc inside .github/workflows/validate.yml. There is no package.json and no scripts/ directory, so:

Scope

  • Move the logic to scripts/validate.py (or .mjs), unchanged in behaviour.
  • validate.yml becomes a thin wrapper that runs it.
  • Document the local command in CONTRIBUTING.md, in the section that already tells contributors what fields are required.

Note for whoever picks this up

The library-in-code_libraries[] check applies to showpiece[] only. fallback_basic entries point at shadcn and tremor, which are intentionally not code_libraries entries; applying the check to both arrays fails CI on valid data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions