Skip to content

Commit db0a798

Browse files
committed
ci(github-actions): add linter to check commit messages for pushes to main
1 parent d4110c6 commit db0a798

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Changelog
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Setup Node.js environment
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: lts/*
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Run Commitlint against most recent commit message
23+
run: echo -n "${{ github.event.head_commit.message }}" | npx --no -- commitlint --verbose

0 commit comments

Comments
 (0)