Skip to content

improve: consistency of CI (#14) #31

improve: consistency of CI (#14)

improve: consistency of CI (#14) #31

Workflow file for this run

name: fern
on:
push:
branches:
- main
jobs:
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
- name: Validate API configuration
run: fern check
publish-docs:
needs: fern-check

Check failure on line 27 in .github/workflows/publish-docs.yml

View workflow run for this annotation

GitHub Actions / fern

Invalid workflow file

The workflow is not valid. .github/workflows/publish-docs.yml (Line: 27, Col: 12): Job 'publish-docs' depends on unknown job '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
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --docs --log-level debug