mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
889 B
YAML
44 lines
889 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches: ['**']
|
|
paths:
|
|
- ".github/workflows/docs.yml"
|
|
- "docs/**"
|
|
pull_request:
|
|
branches: ['**']
|
|
paths:
|
|
- ".github/workflows/docs.yml"
|
|
- "docs/**"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
name: Validate Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
cache-dependency-path: docs/package-lock.json
|
|
|
|
- name: Install docs dependencies
|
|
working-directory: docs
|
|
run: npm ci
|
|
|
|
- name: Validate docs
|
|
working-directory: docs
|
|
run: npm run validate
|