🌿 ✨ [Scheduled] Update API Spec #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview SDKs | |
on: | |
pull_request: | |
paths: | |
- 'fern/**' | |
- 'openapi.json' | |
- 'openapi-overrides.yml' | |
jobs: | |
preview-typescript: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Generate Preview | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
fern generate --api v5 --group ts-sdk --preview --log-level debug | |
- name: Compile | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd fern/apis/v5/.preview/fern-typescript-node-sdk | |
yarn install | |
yarn build | |
preview-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
- name: Download Fern | |
run: npm install -g fern-api | |
- name: Preview Python SDK | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
fern generate --api v5 --group python-sdk --preview --log-level debug | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Bootstrap poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1 | |
- name: Compile | |
run: | | |
cd fern/apis/v5/.preview/fern-python-sdk | |
poetry install | |
poetry run mypy . |