From 36344d39cb6dddf12ee583cf84352f0e06451046 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] Use fern-api/setup-fern-cli@v1 action instead of npm install Replace the manual `npm install -g fern-api` step with the official `fern-api/setup-fern-cli@v1` GitHub Action for a cleaner and more maintainable way to install the Fern CLI. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/fern.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fern.yml b/.github/workflows/fern.yml index 71fd444..6f25347 100644 --- a/.github/workflows/fern.yml +++ b/.github/workflows/fern.yml @@ -11,8 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Install fern - run: npm install -g fern-api + - name: Setup Fern CLI + uses: fern-api/setup-fern-cli@v1 - name: fern check run: fern check - name: Verify generated code is up to date @@ -20,4 +20,4 @@ jobs: fern generate git --no-pager diff --exit-code env: - FERN_TOKEN: dummy \ No newline at end of file + FERN_TOKEN: dummy