Skip to content

Commit 36ce314

Browse files
authored
Update lint.yaml
1 parent 1faabe9 commit 36ce314

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
branches:
2424
- main
2525

26+
permissions:
27+
contents: read
28+
2629
concurrency:
2730
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
2831
cancel-in-progress: true
@@ -52,3 +55,26 @@ jobs:
5255
env:
5356
ENABLE_BPMETADATA: 1
5457

58+
commitlint:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0
64+
- name: Setup node
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: lts/*
68+
cache: npm
69+
- name: Install commitlint
70+
run: npm install -D @commitlint/cli @commitlint/config-conventional
71+
- name: Print versions
72+
run: |
73+
git --version
74+
node --version
75+
npm --version
76+
npx commitlint --version
77+
78+
- name: Validate PR commits with commitlint
79+
if: github.event_name == 'pull_request'
80+
run: ${{ github.event.pull_request.title }} | npx commitlint --verbose

0 commit comments

Comments
 (0)