Skip to content

Commit ec9b4c1

Browse files
committed
build docs on pr
Signed-off-by: rishichawda <[email protected]>
1 parent 7e1cd0c commit ec9b4c1

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,8 @@ name: Test
33
on:
44
pull_request:
55
branches: [main]
6-
paths:
7-
- 'lib/**'
8-
- 'index.ts'
9-
- 'styles.css'
10-
- 'package.json'
11-
- '__tests__/**'
12-
- 'tsconfig.json'
13-
- '.github/workflows/test.yml'
146
push:
157
branches: [main]
16-
paths:
17-
- 'lib/**'
18-
- 'index.ts'
19-
- 'styles.css'
20-
- 'package.json'
21-
- '__tests__/**'
22-
- 'tsconfig.json'
23-
- '.github/workflows/test.yml'
248

259
jobs:
2610
test:
@@ -72,3 +56,31 @@ jobs:
7256

7357
- name: Check TypeScript types
7458
run: yarn build:ts --noEmit
59+
60+
docs-build:
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v4
66+
67+
- name: Setup Node.js
68+
uses: actions/setup-node@v4
69+
with:
70+
node-version: '18'
71+
cache: 'yarn'
72+
73+
- name: Install Root Dependencies & Build Plugin
74+
run: |
75+
yarn install --frozen-lockfile
76+
yarn build
77+
78+
- name: Install Docs Dependencies
79+
run: |
80+
cd docs
81+
yarn install --frozen-lockfile
82+
83+
- name: Build Documentation Site
84+
run: |
85+
cd docs
86+
yarn build

0 commit comments

Comments
 (0)