Skip to content

Revert "Automatically re-generate the TS SDK when we merge PRs to this repo" #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions .github/workflows/ts-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,26 @@ on:
workflow_dispatch:
inputs:
version:
description: 'The version of the SDKs that you would like to release'
description: "The version of the SDKs that you would like to release"
required: true
type: string
push:
branches:
- main
paths:
- 'fern/**'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v4

- name: Download Fern
run: npm install -g fern-api

- name: Determine version
id: bump
run: |
if [ -n "${{ inputs.version }}" ]; then
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
else
chmod +x ./scripts/fern/bump.sh
VERSION=$(./scripts/fern/bump.sh --from HEAD~1 --group ts-sdk)
echo "version=$VERSION" >> $GITHUB_OUTPUT
fi

- name: Release SDKs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
FERN_NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
run: |
echo "Releasing SDK version: ${{ steps.bump.outputs.version }}"
fern generate --group ts-sdk --version ${{ steps.bump.outputs.version }} --log-level debug
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug
169 changes: 0 additions & 169 deletions scripts/fern/bump.sh

This file was deleted.