Skip to content

Commit 01e84ab

Browse files
committed
fix(ci): invoke fhir-gen via direct node path
pnpm bin symlinks aren't reliable in CI (install runs before cli/dist exists), and npx --package kept resolving to 'fhir-gen: not found'. The Build workspace packages step ahead of this guarantees the dist file exists, so calling node on it directly is the most predictable path.
1 parent 18d0222 commit 01e84ab

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ jobs:
4949
run: pnpm build
5050

5151
- name: Generate FHIR types for demo
52-
# npx needs --package because @fhir-dsl/cli's bin is named `fhir-gen`,
53-
# not `cli` — npx can't auto-resolve. Explicit form fetches the package
54-
# from npm and runs the right binary.
52+
# Invoke the workspace CLI directly — pnpm's bin symlink isn't reliable
53+
# in CI because pnpm install runs before @fhir-dsl/cli's dist/ exists,
54+
# and npx through both bash and dash kept resolving to "fhir-gen: not
55+
# found". The dist exists now (Build workspace packages step above).
5556
working-directory: apps/his-demo
56-
run: npx -y --package=@fhir-dsl/cli fhir-gen generate --version r4 --validator native --expand-valuesets --resolve-codesystems --cache ./.fhir-cache --out ./src/fhir/r4
57+
run: node ${{ github.workspace }}/packages/cli/dist/index.js generate --version r4 --validator native --expand-valuesets --resolve-codesystems --cache ./.fhir-cache --out ./src/fhir/r4
5758

5859
- name: Build demo (static SPA)
5960
working-directory: apps/his-demo

0 commit comments

Comments
 (0)