Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci

on: [push]

jobs:
fern-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install Fern
run: npm install -g fern-api

- name: Check Fern API is valid
run: fern check

generate-sdks:
needs: fern-check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3

- name: Download Fern
run: npm install -g fern-api

- name: Release beta SDKs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --api beta --log-level debug

- name: Release public SDKs
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: fern generate --api public --version ${{ github.ref_name }} --log-level debug
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fern/*/definition/
12 changes: 12 additions & 0 deletions fern/beta/generators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
default-group: sdks
groups:
sdks:
generators:
- name: fernapi/fern-typescript-sdk
version: 0.5.18
output:
location: npm
url: npm.buildwithfern.com
package-name: "@devrev-fern/beta"
config:
namespaceExport: DevRevBeta
Loading