Skip to content

ci: install fern-api globally in workflows that invoke fern#334

Merged
Devon-White merged 1 commit into
mainfrom
nko/ci-install-fern
May 20, 2026
Merged

ci: install fern-api globally in workflows that invoke fern#334
Devon-White merged 1 commit into
mainfrom
nko/ci-install-fern

Conversation

@Devon-White
Copy link
Copy Markdown
Collaborator

Summary

  • yarn install doesn't put fern on PATH (it's not a workspace dependency), so yarn fern-check fails in CI with /bin/sh: 1: fern: not found.
  • Add a npm install -g fern-api step in check.yml and publish-docs.yml — the two workflows that invoke the fern binary via yarn fern-check / yarn fern-md-check.
  • publish-postman.yml and check-links.yml don't run fern, so they're untouched.

Test plan

  • Verify the fern-check workflow passes on this PR
  • Verify the publish-docs workflow runs on next merge to main

The fern CLI isn't a workspace dependency, so `yarn install` doesn't put
it on PATH and `yarn fern-check` fails with `/bin/sh: 1: fern: not found`.
Install fern-api globally in fern-check and publish-docs before any step
that calls fern directly.
@github-actions
Copy link
Copy Markdown
Contributor

@Devon-White Devon-White merged commit 4d9358c into main May 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant