From 66c58ccc3cd4683e8f43946ff20c9fe9c8795ec4 Mon Sep 17 00:00:00 2001 From: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:16:18 -0500 Subject: [PATCH 1/2] Use setup-fern-cli GitHub Action instead of npm install 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 --- .github/workflows/preview-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 379cf1f..252b277 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -12,8 +12,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Fern CLI tool - run: npm install -g fern-api + - name: Setup Fern CLI + uses: fern-api/setup-fern-cli@v1 - name: Generate preview URL id: generate-docs From 2aeaeb6a63f6a0bf237743da7c6fd7122ec13d6a Mon Sep 17 00:00:00 2001 From: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:24:25 -0500 Subject: [PATCH 2/2] Use setup-fern-cli action in check and publish-docs workflows 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 --- .github/workflows/check.yml | 4 ++-- .github/workflows/publish-docs.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8dca65f..98f4d15 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -13,8 +13,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Fern CLI tool - run: npm install -g fern-api + - name: Setup Fern CLI + uses: fern-api/setup-fern-cli@v1 - name: Check API is valid run: fern check diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index ad3cfea..fcc6811 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -13,8 +13,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Install Fern CLI tool - run: npm install -g fern-api + - name: Setup Fern CLI + uses: fern-api/setup-fern-cli@v1 - name: Publish Docs env: