--- name: Verify PR title on: pull_request: types: - opened - edited - reopened - synchronize jobs: lint_pr: timeout-minutes: 10 runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v3 - name: Setup node uses: actions/setup-node@v3 with: node-version: 16 - name: Install dependencies run: | rm package.json npm install --no-save @commitlint/cli @commitlint/config-conventional @commitlint/config-nx-scopes nx - name: Check PR title run: echo "${{ github.event.pull_request.title }}" | npx commitlint --config ./commitlint.config-ci.js