Skip to content

Commit 7a6c853

Browse files
committed
Merge remote-tracking branch 'origin/main' into anubhav.bohidar/559299-standalone-platform-handoff
# Conflicts: # descriptions/0/api.intercom.io.yaml
2 parents 5522eec + c7c201b commit 7a6c853

17 files changed

Lines changed: 5996 additions & 681 deletions

‎.github/workflows-disabled/fern_check.yml‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.github/workflows-disabled/ts-sdk.yml‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎.github/workflows/fern_check.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Fern Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
16+
jobs:
17+
run:
18+
name: Fern Check
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 15
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24+
with:
25+
persist-credentials: false
26+
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
29+
30+
- name: Install Fern
31+
run: pnpm add -g fern-api@5.65.3
32+
33+
- name: Check API is valid
34+
run: fern check

‎.github/workflows/ts-sdk.yml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}
16+
cancel-in-progress: false
17+
18+
jobs:
19+
release:
20+
name: Release
21+
runs-on: ubuntu-latest
22+
# FERN_TOKEN is an environment secret; only runs from main can reach it.
23+
environment: main
24+
timeout-minutes: 30
25+
steps:
26+
- name: Checkout repo
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28+
with:
29+
persist-credentials: false
30+
31+
- name: Setup node
32+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
33+
with:
34+
node-version: 22
35+
package-manager-cache: false
36+
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
39+
40+
- name: Download Fern
41+
run: pnpm add -g fern-api@5.65.3
42+
43+
- name: Validate version input
44+
env:
45+
VERSION: ${{ inputs.version }}
46+
run: |
47+
if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]]; then
48+
echo "version must look like 7.0.5 or 7.0.5-beta.0, got: $VERSION"
49+
exit 1
50+
fi
51+
52+
- name: Release SDKs
53+
env:
54+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
55+
VERSION: ${{ inputs.version }}
56+
run: fern generate --group ts-sdk --version "$VERSION" --log-level debug

0 commit comments

Comments
 (0)