Merge pull request #19 from Naucto/NCTO-141-add-image-upload-on-proje… #35
This file contains hidden or 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: Generate TypeScript client for the frontend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| generate_ts_client: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 25 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Generate Prisma client | |
| run: npx prisma generate | |
| - name: Generate Swagger JSON | |
| run: npm run generate:swagger | |
| - name: Generate TypeScript client | |
| run: npm run generate:client | |
| - name: Zip API client | |
| run: | | |
| mkdir -p artifacts | |
| zip -r artifacts/api_ts_client_$(date +"%Y%m%d_%H%M%S").zip ./generated_client | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: api-client-artifacts | |
| path: artifacts/api_ts_client_*.zip | |