File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
+ # Build library
17
18
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
18
19
19
20
- uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
27
28
- name : Run library build
28
29
run : npm run build
29
30
31
+ # Build and test example app
30
32
- name : Install example dependencies
31
33
run : cd example && npm ci
32
34
35
37
36
38
- name : Run example tests
37
39
run : cd example && npm run test
40
+
41
+ # Check documentation
42
+ - name : Generate documentation
43
+ run : yarn build:docs
44
+
45
+ - name : Check for documentation changes
46
+ run : |
47
+ if [[ -n $(git status --porcelain | grep "README.md") ]]; then
48
+ echo "Documentation is not up to date!"
49
+ exit 1
50
+ fi
Original file line number Diff line number Diff line change @@ -174,4 +174,4 @@ useEffect(() => {
174
174
>
175
175
CustomEvent.trackEvent button
176
176
</button >
177
- ```
177
+ ```
You can’t perform that action at this time.
0 commit comments