chore: update SDK from production OpenAPI #164
Workflow file for this run
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - run: bun install | |
| - name: Check lockstep package versions | |
| run: | | |
| SDK_VERSION=$(cd packages/v0-sdk && bun pm pkg get version | tr -d '"') | |
| AI_TOOLS_VERSION=$(cd packages/ai-tools && bun pm pkg get version | tr -d '"') | |
| REACT_VERSION=$(cd packages/react && bun pm pkg get version | tr -d '"') | |
| CREATE_APP_VERSION=$(cd packages/create-v0-sdk-app && bun pm pkg get version | tr -d '"') | |
| AI_TOOLS_SDK_VERSION=$(cd packages/ai-tools && bun pm pkg get dependencies.v0 | tr -d '"') | |
| REACT_SDK_VERSION=$(cd packages/react && bun pm pkg get dependencies.v0 | tr -d '"') | |
| if [ "$SDK_VERSION" != "$AI_TOOLS_VERSION" ] || [ "$SDK_VERSION" != "$REACT_VERSION" ] || [ "$SDK_VERSION" != "$CREATE_APP_VERSION" ]; then | |
| echo "::error::v0, @v0-sdk/ai-tools, @v0-sdk/react, and create-v0-sdk-app versions must match (${SDK_VERSION}, ${AI_TOOLS_VERSION}, ${REACT_VERSION}, ${CREATE_APP_VERSION})." | |
| exit 1 | |
| fi | |
| if [ "$SDK_VERSION" != "$AI_TOOLS_SDK_VERSION" ] || [ "$SDK_VERSION" != "$REACT_SDK_VERSION" ]; then | |
| echo "::error::Published package dependencies on v0 must match ${SDK_VERSION} (@v0-sdk/ai-tools: ${AI_TOOLS_SDK_VERSION}, @v0-sdk/react: ${REACT_SDK_VERSION})." | |
| exit 1 | |
| fi | |
| - run: bun run lint | |
| - run: bun run fmt:check | |
| - run: bun run generate | |
| - run: bun run build | |
| - run: bun run typecheck | |
| - run: bun run test |