/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/validate-skills.yml
52 строки
1 KB
renovate[bot]
chore(deps): update actions/setup-node action to v6 (#7277)
21 мар 2026, 04:00
Не верифицирован
21 мар 2026, 04:00
f3df74b
Код
Авторство
О чём код?
# validate-skills.yml — Drop this into your library repo's .github/workflows/ # # Validates skill files on PRs that touch the skills/ directory. # Ensures frontmatter is correct, names match paths, and files stay under # the 500-line limit. name: Validate Skills on: pull_request: paths: - 'skills/**' - '**/skills/**' jobs: validate: name: Validate skill files runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v6 - name: Setup Node uses: actions/setup-node@v6 with: node-version: 20 - name: Install intent CLI run: npm install -g @tanstack/intent - name: Find and validate skills run: | # Find all directories containing SKILL.md files SKILLS_DIR="" if [ -d "skills" ]; then SKILLS_DIR="skills" elif [ -d "packages" ]; then # Monorepo — find skills/ under packages for dir in packages/*/skills; do if [ -d "$dir" ]; then echo "Validating $dir..." intent validate "$dir" fi done exit 0 fi if [ -n "$SKILLS_DIR" ]; then intent validate "$SKILLS_DIR" else echo "No skills/ directory found — skipping validation." fi