feat(cli): support bytes in the fern definition (#5388) #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IR SDKs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "packages/ir-sdk/fern/apis/ir-types-latest/VERSION" | |
jobs: | |
node: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Release SDKs | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd packages/ir-sdk | |
version=$(cat fern/apis/ir-types-latest/VERSION) | |
fern generate --api ir-types-latest --group node --version $version | |
dynamic-ir: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Release SDKs | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }} | |
run: | | |
cd packages/ir-sdk | |
version=$(cat fern/apis/ir-types-latest/VERSION) | |
fern generate --api ir-types-latest --group dynamic-ir --version $version | |
python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Release SDKs | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd packages/ir-sdk | |
version=$(cat fern/apis/ir-types-latest/VERSION) | |
fern generate --api ir-types-latest --group python --version $version | |
go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Release SDKs | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd packages/ir-sdk | |
version=$(cat fern/apis/ir-types-latest/VERSION) | |
fern generate --api ir-types-latest --group go --version $version | |
java: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Fern | |
run: npm install -g fern-api | |
- name: Release SDKs | |
env: | |
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
run: | | |
cd packages/ir-sdk | |
version=$(cat fern/apis/ir-types-latest/VERSION) | |
fern generate --api ir-types-latest --group java --version $version |