name: Commitlint on: pull_request: branches: [main] jobs: commitlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version-file: ".nvmrc" cache: "npm" - name: Install dependencies run: npm ci - name: Lint commit messages run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD --verbose