Skip to content

Commit

Permalink
chore(commitlint): only run commitlint on PR
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed May 31, 2022
1 parent 906a37c commit 5ed2b65
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ jobs:
with:
node-version: 14

- name: Check Trame Install
run: npm ci

- name: Install commitlint
if: github.event_name == 'pull_request'
run: |
npm install -g @commitlint/cli @commitlint/config-conventional
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- name: Check Trame Install
run: npm ci

- name: Lint commits
if: github.event_name == 'pull_request'
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}

release:
Expand Down

0 comments on commit 5ed2b65

Please sign in to comment.