chore(release): 0.1.0 #15
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: Check | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| env: | |
| PNPM_STORE_PATH: .pnpm-store | |
| jobs: | |
| generated_files_check: | |
| name: Generated Files Check | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Check generated Zod types are up-to-date | |
| run: | | |
| pnpm schema:generate | |
| if ! git diff --exit-code; then | |
| echo "The generated Zod types are not up-to-date. Please run \"pnpm generate\" locally and then commit the changes." | |
| exit 1 | |
| fi | |
| build: | |
| name: Build | |
| runs-on: ubuntu-24.04 | |
| needs: generated_files_check | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Build | |
| run: | | |
| pnpm build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v6.0.0 | |
| with: | |
| name: build-output | |
| path: dist/ | |
| type: | |
| name: Type Check | |
| runs-on: ubuntu-24.04 | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v7.0.0 | |
| with: | |
| name: build-output | |
| path: dist/ | |
| - name: Lint | |
| run: | | |
| pnpm types | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-24.04 | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v7.0.0 | |
| with: | |
| name: build-output | |
| path: dist/ | |
| - name: Lint | |
| run: | | |
| pnpm lint | |
| commitlint: | |
| name: Commitlint | |
| runs-on: ubuntu-24.04 | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup environment | |
| uses: ./.github/actions/setup-environment | |
| - name: Validate current commit | |
| if: github.event_name == 'push' | |
| run: pnpm commitlint --last --verbose | |
| - name: Validate PR commits | |
| if: github.event_name == 'pull_request' | |
| run: pnpm commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose |