feat: implement clack DO NOT MERGE #16534
This file contains 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: Verify Docs | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
verify-docs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: npm | |
- name: Install core dependencies | |
run: npm ci --no-audit | |
- name: Install site dependencies | |
run: npm run site:build:install | |
- name: Generate docs | |
run: npm run docs | |
- name: Check for changes | |
run: | | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No changes to docs files detected" | |
else | |
echo "Changes to docs files detected, please run 'npm run docs' to sync docs" | |
exit 1 | |
fi |