Feat/profile #1
Workflow file for this run
This file contains 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: Lint PR title | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, edited] | |
jobs: | |
lint-commit-message: | |
name: Lint PR title | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Clean packages | |
run: | | |
rm package.json package-lock.json|| true | |
npm init --yes --private | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Install Commitlint | |
run: npm add --dev commitlint @commitlint/config-conventional | |
- name: Run commit message lint on PR title | |
run: echo "${{ github.event.pull_request.title }}" | npx commitlint |