Skip to content

Commit f1d4f2e

Browse files
committed
chore: use automatic commitlint
1 parent 7a13577 commit f1d4f2e

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ on:
44
types: ["opened", "edited", "reopened", "synchronize"]
55

66
jobs:
7-
check-title:
8-
runs-on: ubuntu-20.04
7+
commitlint:
8+
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3.2.0
11-
- uses: pnpm/action-setup@v2.2.4
12-
- name: Use Node.js
13-
uses: actions/setup-node@v3.5.1
10+
- uses: actions/checkout@v3
1411
with:
15-
node-version: 17
16-
check-latest: true
17-
cache: "pnpm"
18-
- run: pnpm install
19-
- run: echo '${{ github.event.pull_request.title }}' | pnpm commitlint
12+
fetch-depth: 0
13+
- uses: wagoid/commitlint-github-action@v3

0 commit comments

Comments
 (0)