Skip to content

chore(release): 0.1.0 #15

chore(release): 0.1.0

chore(release): 0.1.0 #15

Workflow file for this run

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