Skip to content

Comments

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

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

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

Conversation

@fern-support
Copy link
Contributor

Summary

  • Replaces the manual npm install -g fern-api@latest step in .github/workflows/preview-docs.yml with the fern-api/setup-fern-cli@v1 composite action
  • 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 PR after this change
  • Confirm the Fern CLI is available in subsequent steps (e.g. fern generate --docs --preview)

🤖 Generated with Claude Code

Replace the manual `npm install -g fern-api@latest` step with the
`fern-api/setup-fern-cli@v1` composite action for a more maintainable
and standardized way to install the Fern CLI in CI.

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

github-actions bot commented Feb 23, 2026

Replace `npm install -g fern-api` with `uses: fern-api/setup-fern-cli@v1`
in csharp-publish.yml, python-publish.yml, typescript-publish.yml, and
publish-docs.yml for consistent CLI installation via the reusable action.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fern-support fern-support enabled auto-merge (squash) February 23, 2026 04:22
@fern-support fern-support merged commit 3359f64 into main Feb 23, 2026
1 check passed
@fern-support fern-support deleted the use-setup-fern-cli-action branch February 23, 2026 04:22
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