name: commitlint on: [pull_request] permissions: contents: read jobs: commitlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 18 cache: npm - run: npm install -g @commitlint/cli @commitlint/config-conventional - run: 'echo "${PR_TITLE}" | commitlint' env: PR_TITLE: ${{ github.event.pull_request.title }}