ci: pin fern-api to 5.26.4 and drop global CLI install steps#335
Merged
Conversation
Bump fern-api devDependency from ^5.23.3 to 5.26.4 to match the CLI version declared in fern/fern.config.json, and remove the `npm install -g fern-api` steps added in #334. With fern-api as a pinned workspace devDependency, yarn install puts fern in node_modules/.bin so every workflow that calls yarn fern-check, yarn build, etc. resolves the binary without a global install.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fern-apidevDependency to5.26.4, matching the CLI version declared infern/fern.config.json(was^5.23.3).npm install -g fern-apisteps added in ci: install fern-api globally in workflows that invoke fern #334 fromcheck.ymlandpublish-docs.yml. Withfern-apias a pinned workspace devDependency,yarn installputsferninnode_modules/.bin, so every workflow that callsyarn fern-check,yarn build,npx fern generate, etc. resolves the binary automatically.yarn.lockto the new resolved version.This also fixes the
preview-docs.ymlfailure (/bin/sh: 1: fern: not found) that #334 missed — once branches merge this, the preview workflow'syarn buildstep will find fern via the lockfile.Test plan
fern-checkworkflow passes on this PR (usesyarn fern-checkonly)preview-docsworkflow generates a preview URL (usesyarn buildwhich callsfern generate)