Skip to content

Use setup-fern-cli GitHub Action in preview-docs workflow#98

Merged
Swimburger merged 2 commits intomainfrom
use-setup-fern-cli-action
Feb 23, 2026
Merged

Use setup-fern-cli GitHub Action in preview-docs workflow#98
Swimburger merged 2 commits intomainfrom
use-setup-fern-cli-action

Conversation

@fern-support
Copy link
Copy Markdown
Contributor

Summary

  • Replaces npm install -g fern-api with the fern-api/setup-fern-cli@v1 GitHub Action in .github/workflows/preview-docs.yml
  • The dedicated action is the recommended way to install the Fern CLI in GitHub Actions workflows
  • No setup-node step is needed since GitHub-hosted ubuntu-latest runners include Node.js by default

Test plan

  • Verify the preview-docs workflow runs successfully on a pull request after this change
  • Confirm the Fern CLI is available and the fern generate --docs --preview command executes correctly

🤖 Generated with Claude Code

Replace the manual `npm install -g fern-api` step with the
`fern-api/setup-fern-cli@v1` action in the preview-docs workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 23, 2026

Replace `npm install -g fern-api` with the `fern-api/setup-fern-cli@v1`
action in both CI workflow files for consistency with the recommended
installation method.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Swimburger Swimburger merged commit 795ecd4 into main Feb 23, 2026
2 checks passed
@Swimburger Swimburger deleted the use-setup-fern-cli-action branch February 23, 2026 04:23
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.

2 participants