Skip to content

Commit

Permalink
ci(github-actions): add linter to check commit messages for pushes to…
Browse files Browse the repository at this point in the history
… main
  • Loading branch information
b-kelly committed Jun 24, 2022
1 parent d4110c6 commit db0a798
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/changelog.yml
@@ -0,0 +1,23 @@
name: Changelog

on:
push:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Run Commitlint against most recent commit message
run: echo -n "${{ github.event.head_commit.message }}" | npx --no -- commitlint --verbose

0 comments on commit db0a798

Please sign in to comment.