Skip to content

Commit b59b6a7

Browse files
preview sdks github action (#221)
1 parent 900525d commit b59b6a7

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/preview_sdks.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Preview SDKs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'fern/**'
7+
8+
jobs:
9+
preview-typescript:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v3
17+
18+
- name: Download Fern
19+
run: npm install -g fern-api
20+
21+
- name: Generate Preview
22+
env:
23+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
24+
run: |
25+
fern generate --group ts-sdk --preview --log-level debug
26+
27+
- name: Compile
28+
env:
29+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: |
32+
cd fern/.preview/fern-typescript-node-sdk
33+
yarn install
34+
yarn build

fern/openapi-overrides.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,11 @@ components:
13701370
required:
13711371
- user_id
13721372
merge_contacts_request:
1373+
properties:
1374+
from:
1375+
x-fern-property-name: lead_id
1376+
into:
1377+
x-fern-property-name: contact_id
13731378
custom_attributes:
13741379
title: Custom atttributes
13751380
type: object

0 commit comments

Comments
 (0)