fix: only apply empty styling in dev mode #3791
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit lint check | |
on: | |
pull_request: | |
branches-ignore: | |
- master | |
jobs: | |
commit_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.14.0 | |
- name: Install packages | |
run: yarn install | |
- name: Commit linter | |
run: npx commitlint --from $(git rev-parse --short HEAD^1) --to $(git rev-parse --short HEAD^2) |