chore: improve radashi maintenance/ci scripts #812
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 Pull Request | |
on: | |
pull_request: | |
branches: [main, next] | |
types: [opened, synchronize, reopened, edited] | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
env: | |
PR_TITLE: '${{ github.event.pull_request.title }}' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm install @commitlint/[email protected] | |
- name: Lint | |
run: pnpm lint --base ${{ github.event.pull_request.base.sha }} | |
- name: Check PR Title | |
run: echo "$PR_TITLE" | pnpm -s dlx [email protected] |