Skip to content

Commit

Permalink
🌿 Add fern configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 17, 2024
1 parent f22a8dc commit 8709d86
Show file tree
Hide file tree
Showing 4 changed files with 1,213 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ts-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release TypeScript SDK

on:
workflow_dispatch:
inputs:
version:
description: "The version of the SDKs that you would like to release"
required: true
type: string

jobs:
release:
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 SDKs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
FERN_NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
run: |
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug
4 changes: 4 additions & 0 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"organization": "intercom",
"version": "0.33.1"
}
25 changes: 25 additions & 0 deletions fern/generators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
api:
path: ../descriptions/2.11/api.intercom.io.yaml
overrides: ./openapi-overrides.yml
settings:
use-title: false
groups:
ts-sdk:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.34.0
output:
location: npm
package-name: intercom-client
token: ${FERN_NPM_TOKEN}
github:
repository: intercom/intercom-node
mode: push
branch: 6.0.0-alpha
config:
namespaceExport: Intercom
allowCustomFetcher: true
skipResponseValidation: true
includeApiReference: true
noSerdeLayer: true
smart-casing: true
Loading

0 comments on commit 8709d86

Please sign in to comment.