Skip to content
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.