From a530dcb98b1f06a73e51869675f2949062ce068f Mon Sep 17 00:00:00 2001 From: edmcquinn <73904683+edmcquinn@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:39:13 -0400 Subject: [PATCH] Update publish-docs.yml --- .github/workflows/publish-docs.yml | 36 ++++++------------------------ 1 file changed, 7 insertions(+), 29 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index f72653d..7b6b37c 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -1,40 +1,18 @@ -name: fern +name: publish-docs -on: - push: - branches: - - main +on: + push: + branches: + - main jobs: - check: + run: runs-on: ubuntu-latest + if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main') steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "18" - - - name: Install Fern - run: npm install -g fern-api - - - name: Validate API configuration - run: fern check - - publish-docs: - needs: fern-check - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: "18" - - name: Install Fern run: npm install -g fern-api