ci(#24): fix typecheck command name #23
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| - name: Security Audit | |
| run: pnpm audit --audit-level=moderate | |
| - name: Run Tests | |
| run: pnpm test | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| - name: Run lint check | |
| run: pnpm lint:check | |
| check-types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| - name: Run type check | |
| run: pnpm typecheck | |
| check-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| - name: Run format check | |
| run: pnpm format:check | |
| release: | |
| needs: [test, lint, check-types, check-format] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Environment | |
| uses: ./.github/actions/setup | |
| with: | |
| registry-url: https://npm.pkg.github.com | |
| - name: Build Package | |
| run: pnpm build | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_REGISTRY: https://npm.pkg.github.com | |
| run: npx semantic-release |