fix(typescript): noSerdeLayer with SSE now compiles (#5404) #580
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
# TODO: delete this when we migrate to the one versions file in `publish-generators-v2` | |
name: publish-generators | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "generators/typescript/sdk/VERSION" | |
workflow_dispatch: | |
inputs: | |
generator: | |
description: "The generator to publish a dev release for" | |
required: true | |
type: choice | |
options: | |
- typescript-sdk | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
versions-changed: | |
runs-on: ubuntu-latest | |
outputs: | |
ts-sdk: ${{ steps.filter.outputs.ts-sdk }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
ts-sdk: 'generators/typescript/sdk/VERSION' | |
ts-browser-sdk: | |
runs-on: ubuntu-latest | |
if: ${{ needs.versions-changed.outputs.ts-sdk == 'true' || inputs.generator == 'typescript-sdk' }} | |
needs: versions-changed | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Print Version | |
if: ${{ inputs.generator != 'ts-sdk' }} | |
run: | | |
projectVersion=$(cat generators/typescript/sdk/VERSION) | |
echo $projectVersion | |
echo "VERSION=$projectVersion" >> $GITHUB_ENV | |
- name: Print Version Dev | |
if: ${{ inputs.generator == 'ts-sdk' }} | |
run: | | |
projectVersion=$(cat generators/typescript/sdk/VERSION) | |
commitNumber=$(git log --oneline | wc -l ) | |
sha_short=$(git rev-parse --short HEAD) | |
echo $projectVersion-$commitNumber-$sha_short | |
echo "VERSION=$projectVersion-$commitNumber-$sha_short" >> $GITHUB_ENV | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: fernapi | |
password: ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }} | |
- name: Publish fernapi/fern-typescript-node-sdk docker | |
run: | | |
pnpm --filter @fern-typescript/sdk-generator-cli dockerTagVersion:browser "$VERSION" | |
docker push fernapi/fern-typescript-browser-sdk:"$VERSION" | |
ts-node-sdk: | |
runs-on: ubuntu-latest | |
if: ${{ needs.versions-changed.outputs.ts-sdk == 'true' || inputs.generator == 'typescript-sdk' }} | |
needs: versions-changed | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install | |
uses: ./.github/actions/install | |
- name: Print Version | |
if: ${{ inputs.generator != 'ts-sdk' }} | |
run: | | |
projectVersion=$(cat generators/typescript/sdk/VERSION) | |
echo $projectVersion | |
echo "VERSION=$projectVersion" >> $GITHUB_ENV | |
- name: Print Version Dev | |
if: ${{ inputs.generator == 'ts-sdk' }} | |
run: | | |
projectVersion=$(cat generators/typescript/sdk/VERSION) | |
commitNumber=$(git log --oneline | wc -l ) | |
sha_short=$(git rev-parse --short HEAD) | |
echo $projectVersion-$commitNumber-$sha_short | |
echo "VERSION=$projectVersion-$commitNumber-$sha_short" >> $GITHUB_ENV | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: fernapi | |
password: ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }} | |
- name: Publish fernapi/fern-typescript-node-sdk docker | |
run: | | |
pnpm --filter @fern-typescript/sdk-generator-cli dockerTagVersion:node "$VERSION" | |
docker push fernapi/fern-typescript-node-sdk:"$VERSION" |