Skip to content

Commit d1f3a5b

Browse files
committed
ci: install fern-api globally in workflows that invoke fern
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.
1 parent 1297141 commit d1f3a5b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Install dependencies
2222
run: yarn install
2323

24+
- name: Install Fern CLI
25+
run: npm install -g fern-api
26+
2427
- name: Check API is valid
2528
run: yarn fern-check
2629
env:

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- name: Install dependencies
2222
run: yarn install
2323

24+
- name: Install Fern CLI
25+
run: npm install -g fern-api
26+
2427
- name: Build TypeSpec specifications
2528
run: yarn build:specs
2629

0 commit comments

Comments
 (0)