Skip to content

Commit 78c6d4f

Browse files
committed
fix(ci): build workspace packages before demo gen so fhir-gen is on PATH
The new demo-build steps in the docs deploy run `pnpm gen` which calls `fhir-gen` from @fhir-dsl/cli. pnpm install doesn't auto-build workspace packages, so the binary symlink resolves to a non-existent file. Add a `pnpm build` step (root, excludes demo via filter) before the gen step.
1 parent ba8c6fa commit 78c6d4f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
- name: Install dependencies
3939
run: pnpm install --frozen-lockfile
4040

41+
- name: Build workspace packages
42+
# Builds every @fhir-dsl/* package (excludes apps/his-demo via the
43+
# root build script's filter). Required so `fhir-gen` is on PATH for
44+
# the demo gen step below.
45+
run: pnpm build
46+
4147
- name: Build Docusaurus
4248
working-directory: apps/docs
4349
run: pnpm build

0 commit comments

Comments
 (0)