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