-
Notifications
You must be signed in to change notification settings - Fork 906
39 lines (32 loc) · 981 Bytes
/
commit-lint.yml
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
31
32
33
34
35
36
37
38
39
name: Commitlint (v1.x)
on:
pull_request:
branches:
- maintenance/v1.x
jobs:
web3-commit-lint:
name: Validate commit message
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Need to fetch the base SHA so that it can be compared with the head SHA.
fetch-depth: 0
- name: Install package manager
uses: pnpm/action-setup@v3
with:
version: 9.1.0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check that commit message conforms to Semantic Release format
if: ${{ github.event_name == 'pull_request' }}
run: bash commitlint.sh
env:
COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}