forked from moodlehq/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 902 Bytes
/
commitlint.yml
File metadata and controls
30 lines (26 loc) · 902 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: CI
on: pull_request
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 22.13.0
- name: Install commitlint
run: npm install -D @commitlint/cli @commitlint/config-conventional
- name: Print versions
run: |
git --version
node --version
npm --version
npx commitlint --version
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
run: npx commitlint -g .github/linters/.commitlintrc.ts --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose