Skip to content

Commit c70254c

Browse files
Patrick ThorntonPatrick Thornton
authored andcommitted
add preview sdks github action
1 parent d2b95ee commit c70254c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/preview_sdks.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
run: |
31+
cd fern/.preview/fern-typescript-node-sdk
32+
yarn install
33+
yarn build

0 commit comments

Comments
 (0)