Skip to content

Commit 674f694

Browse files
authored
Revert "Automatically re-generate the TS SDK when we merge PRs to this repo (…" (#272)
This reverts commit 7934cac.
1 parent 325a5d5 commit 674f694

File tree

2 files changed

+2
-190
lines changed

2 files changed

+2
-190
lines changed

.github/workflows/ts-sdk.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,26 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'The version of the SDKs that you would like to release'
7+
description: "The version of the SDKs that you would like to release"
88
required: true
99
type: string
10-
push:
11-
branches:
12-
- main
13-
paths:
14-
- 'fern/**'
1510

1611
jobs:
1712
release:
1813
runs-on: ubuntu-latest
1914
steps:
2015
- name: Checkout repo
2116
uses: actions/checkout@v3
22-
with:
23-
fetch-depth: 0
2417

2518
- name: Setup node
2619
uses: actions/setup-node@v4
2720

2821
- name: Download Fern
2922
run: npm install -g fern-api
3023

31-
- name: Determine version
32-
id: bump
33-
run: |
34-
if [ -n "${{ inputs.version }}" ]; then
35-
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
36-
else
37-
chmod +x ./scripts/fern/bump.sh
38-
VERSION=$(./scripts/fern/bump.sh --from HEAD~1 --group ts-sdk)
39-
echo "version=$VERSION" >> $GITHUB_OUTPUT
40-
fi
41-
4224
- name: Release SDKs
4325
env:
4426
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
4527
FERN_NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
4628
run: |
47-
echo "Releasing SDK version: ${{ steps.bump.outputs.version }}"
48-
fern generate --group ts-sdk --version ${{ steps.bump.outputs.version }} --log-level debug
29+
fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug

scripts/fern/bump.sh

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

0 commit comments

Comments
 (0)