Skip to content

chore(internal): Upgrade TypeScript #10593

chore(internal): Upgrade TypeScript

chore(internal): Upgrade TypeScript #10593

Workflow file for this run

name: seed
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
# Cancel previous workflows on previous push
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
seed: ${{ steps.filter.outputs.seed }}
ruby: ${{ steps.filter.outputs.ruby }}
openapi: ${{ steps.filter.outputs.openapi }}
python: ${{ steps.filter.outputs.python }}
postman: ${{ steps.filter.outputs.postman }}
java: ${{ steps.filter.outputs.java }}
typescript: ${{ steps.filter.outputs.typescript }}
go: ${{ steps.filter.outputs.go }}
csharp: ${{ steps.filter.outputs.csharp }}
php: ${{ steps.filter.outputs.php }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
seed:
- '.github/workflows/seed.yml'
- 'packages/seed/**'
- 'packages/ir-sdk/fern/apis/**'
- 'packages/cli/generation/ir-generator/**'
ruby:
- 'generators/ruby/**'
- seed/ruby-sdk/seed.yml
- seed/ruby-model/seed.yml
openapi:
- 'generators/openapi/**'
- seed/openapi/seed.yml
python:
- 'generators/python/**'
- seed/pydantic/seed.yml
- seed/python-sdk/seed.yml
- seed/fastapi/seed.yml
postman:
- 'generators/postman/**'
- seed/postman/seed.yml
java:
- 'generators/java/**'
- seed/java-sdk/seed.yml
- seed/java-model/seed.yml
- seed/java-spring/seed.yml
typescript:
- 'generators/typescript/**'
- seed/ts-sdk/seed.yml
- seed/ts-express/seed.yml
go:
- 'generators/go/**'
- seed/go-sdk/seed.yml
- seed/go-model/seed.yml
- seed/go-fiber/seed.yml
csharp:
- 'generators/csharp/**'
- seed/csharp-sdk/seed.yml
- seed/csharp-model/seed.yml
php:
- 'generators/php/**'
- seed/php-sdk/seed.yml
- seed/php-model/seed.yml
ruby-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.ruby == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ruby-model
generator-path: generators/ruby
ruby-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.ruby == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ruby-sdk
generator-path: generators/ruby
pydantic-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: pydantic
generator-path: generators/python
python-sdk:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: python-sdk
generator-path: generators/python
fastapi:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: fastapi
generator-path: generators/python
openapi:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.openapi == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: openapi
generator-path: generators/openapi
postman:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.postman == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: postman
generator-path: generators/postman
java-sdk:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-sdk
generator-path: generators/java
java-model:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-model
generator-path: generators/java
java-spring:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-spring
generator-path: generators/java
typescript-sdk:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ts-sdk
generator-path: generators/typescript
typescript-express:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ts-express
generator-path: generators/typescript
go-fiber:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-fiber
generator-path: generators/go
go-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-model
generator-path: generators/go
go-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-sdk
generator-path: generators/go
csharp-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.csharp == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: csharp-model
generator-path: generators/csharp
csharp-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.csharp == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: csharp-sdk
generator-path: generators/csharp
php-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.php == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: php-model
generator-path: generators/php
php-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.php == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: php-sdk
generator-path: generators/php