Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit bfb71b0

Browse files
dsinghvizachkirsch
andauthored
configure publishing for beta and public (#1)
* save progress * Upgrade fern + generators * Add github workflow * Generate public definition too * Remove definition folders --------- Co-authored-by: Zach Kirsch <zachkirsch@gmail.com>
1 parent 383da95 commit bfb71b0

File tree

7 files changed

+7201
-0
lines changed

7 files changed

+7201
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
3+
on: [push]
4+
5+
jobs:
6+
fern-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repo
10+
uses: actions/checkout@v3
11+
12+
- name: Install Fern
13+
run: npm install -g fern-api
14+
15+
- name: Check Fern API is valid
16+
run: fern check
17+
18+
generate-sdks:
19+
needs: fern-check
20+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v3
25+
26+
- name: Setup node
27+
uses: actions/setup-node@v3
28+
29+
- name: Download Fern
30+
run: npm install -g fern-api
31+
32+
- name: Release beta SDKs
33+
env:
34+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
35+
run: fern generate --api beta --log-level debug
36+
37+
- name: Release public SDKs
38+
env:
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
41+
run: fern generate --api public --version ${{ github.ref_name }} --log-level debug

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fern/*/definition/

fern/beta/generators.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
default-group: sdks
2+
groups:
3+
sdks:
4+
generators:
5+
- name: fernapi/fern-typescript-sdk
6+
version: 0.5.18
7+
output:
8+
location: npm
9+
url: npm.buildwithfern.com
10+
package-name: "@devrev-fern/beta"
11+
config:
12+
namespaceExport: DevRevBeta

0 commit comments

Comments
 (0)