chore: update collect-js dependency handling #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: validate skills | |
| on: | |
| pull_request: | |
| paths: | |
| - 'skills/**' | |
| push: | |
| paths: | |
| - 'skills/**' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Install skills-ref | |
| run: python -m pip install --upgrade pip skills-ref | |
| - name: Validate public React skill | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if ! command -v skills-ref >/dev/null 2>&1 && command -v agentskills >/dev/null 2>&1; then | |
| printf '#!/usr/bin/env bash\nexec agentskills "$@"\n' > "$RUNNER_TEMP/skills-ref" | |
| chmod +x "$RUNNER_TEMP/skills-ref" | |
| export PATH="$RUNNER_TEMP:$PATH" | |
| fi | |
| skills-ref validate skills/vgs-collect-react-guide |