Skip to content

feat: speed up netlify status by removing extra api call #15514

feat: speed up netlify status by removing extra api call

feat: speed up netlify status by removing extra api call #15514

Workflow file for this run

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