ci(typos): add support for typos
#2
Workflow file for this run
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: Validate PR Title | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| types: [opened, edited] | |
| jobs: | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| name: commitlint | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set nodejs | |
| uses: actions/setup-node@v4 | |
| with: | |
| registry-url: https://registry.npmjs.org/ | |
| node-version: lts/* | |
| - name: Install commitlint dependencies | |
| run: npm i @commitlint/config-conventional@latest | |
| - name: Validate PR title with commitlint | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| run: echo "$TITLE" | npx commitlint@latest -V |