-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (39 loc) · 1013 Bytes
/
commitlint.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
40
41
name: Commitlint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
commitlint:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
run_install: false
- name: Setup node
uses: actions/setup-node@v3
with:
cache: 'pnpm'
check-latest: true
node-version-file: '.nvmrc'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run commitlint
id: run_commitlint
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.js
env:
NODE_PATH: ${{ github.workspace }}/node_modules
- name: Show outputs
if: ${{ always() }}
run: echo ${{ toJSON(steps.run_commitlint.outputs.results) }}