diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index ed555064039..e44b61f06d5 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -8,7 +8,8 @@ on: branches: - main paths: - - './docs' + - 'docs/**' + - '.github/workflows/check-docs.yml' jobs: check-docs-build: @@ -20,8 +21,9 @@ jobs: with: node-version: 18 cache: npm + cache-dependency-path: docs/package-lock.json - name: Install dependencies - run: npm ci + run: cd docs && npm ci - name: Test build website - run: npm run build + run: cd docs && npm run build