File tree Expand file tree Collapse file tree 2 files changed +2
-190
lines changed
Expand file tree Collapse file tree 2 files changed +2
-190
lines changed Original file line number Diff line number Diff line change 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
1611jobs :
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments