Skip to content

Commit 56f0246

Browse files
committed
Added building docs to bundle job
1 parent ebb8d9f commit 56f0246

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/pull-request.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,26 @@ jobs:
146146
yarn build
147147
yarn tsc
148148
149-
- name: Upload Bundle Artifact
149+
- name: Upload Compiled Bundle Artifact
150+
if: matrix.bundleInfo.changes
150151
uses: actions/upload-artifact@v4
151152
with:
152-
name: ${{ matrix.bundleInfo.bundleName }} Bundle
153+
name: ${{ matrix.bundleInfo.bundleName }} Compiled Bundle
153154
path: ./build/bundles/${{ matrix.bundleInfo.bundleName }}.js
154155

156+
- name: Build Bundle Docs
157+
if: matrix.bundleInfo.changes
158+
run: |
159+
cd ${{ matrix.bundleInfo.directory }}
160+
yarn buildtools docs
161+
162+
- name: Upload Compiled Bundle Docs Artifact
163+
if: matrix.bundleInfo.changes
164+
uses: actions/upload-artifact@v4
165+
with:
166+
path: ${{ matrix.bundleInfo.directory }}/dist/docs.json
167+
name: ${{ matrix.bundleInfo.bundleName }} Docs
168+
155169
- name: Run Tests
156170
if: matrix.bundleInfo.changes
157171
run: |

0 commit comments

Comments
 (0)