refactor: replace full-node flag with explicit node-mode config #1231
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: PR Title Lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| lint-title: | |
| name: Lint PR Title | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install commitlint | |
| run: npm install --save-dev @commitlint/cli @commitlint/config-conventional | |
| - name: PR title linting | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: echo "$PR_TITLE" | npx commitlint --config ./commitlint.config.js |