Skip to content

Commit cd8d8c0

Browse files
authored
Check documentation in on-push workflow (#56)
1 parent bb9049a commit cd8d8c0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/on-push.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,14 @@ jobs:
4343
- name: Build
4444
run: yarn build
4545
working-directory: ./example
46+
47+
# Check documentation
48+
- name: Generate documentation
49+
run: yarn build:docs
50+
51+
- name: Check for documentation changes
52+
run: |
53+
if [[ -n $(git status --porcelain | grep "README.md") ]]; then
54+
echo "Documentation is not up to date!"
55+
exit 1
56+
fi

0 commit comments

Comments
 (0)