-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (26 loc) · 908 Bytes
/
commitlint.yml
File metadata and controls
30 lines (26 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Lint Commit Messages
# Set to pull_request when ready to turn on
on: [never]
jobs:
commitlint:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: Install Dependencies
run: yarn install --immutable
- name: Lint Commit Message
uses: wagoid/commitlint-github-action@9763196e10f27aef304c9b8b660d31d97fce0f99 # v5.5.1
env:
NODE_PATH: ${{ github.workspace }}/node_modules
with:
configFile: ${{ github.workspace }}/commitlint.config.js