Skip to content

Commit 01b8638

Browse files
🌿 Add fern configuration (#164)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent f22a8dc commit 01b8638

File tree

4 files changed

+1213
-0
lines changed

4 files changed

+1213
-0
lines changed

.github/workflows/ts-sdk.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release TypeScript SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the SDKs that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup node
19+
uses: actions/setup-node@v3
20+
21+
- name: Download Fern
22+
run: npm install -g fern-api
23+
24+
- name: Release SDKs
25+
env:
26+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
27+
FERN_NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
28+
run: |
29+
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug

fern/fern.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"organization": "intercom",
3+
"version": "0.33.1"
4+
}

fern/generators.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
api:
2+
path: ../descriptions/2.11/api.intercom.io.yaml
3+
overrides: ./openapi-overrides.yml
4+
settings:
5+
use-title: false
6+
groups:
7+
ts-sdk:
8+
generators:
9+
- name: fernapi/fern-typescript-node-sdk
10+
version: 0.34.0
11+
output:
12+
location: npm
13+
package-name: intercom-client
14+
token: ${FERN_NPM_TOKEN}
15+
github:
16+
repository: intercom/intercom-node
17+
mode: push
18+
branch: 6.0.0-alpha
19+
config:
20+
namespaceExport: Intercom
21+
allowCustomFetcher: true
22+
skipResponseValidation: true
23+
includeApiReference: true
24+
noSerdeLayer: true
25+
smart-casing: true

0 commit comments

Comments
 (0)