0.10.0 #78
This file contains 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, Test, Build | |
on: | |
push: | |
branches: | |
- main | |
- $default-branch | |
pull_request: | |
branches: | |
- main | |
- $default-branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16.x | |
- 18.x | |
- 20.x | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
# TODO: Fix commit linting | |
# - name: Check Commits | |
# if: github.event_name == 'pull_request' | |
# run: pnpm i conventional-changelog-conventionalcommits | |
# - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
- name: Check Formatting | |
run: pnpm run prettier:check | |
- name: Lint Changes | |
run: pnpm run lint | |
- name: Check Types | |
run: pnpm run typecheck | |
- name: Run Tests | |
run: pnpm run test:ci | |
- name: Run Build | |
run: pnpm run prerelease |