chore(deps): update packages #2
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
on: | |
push: | |
branches: | |
- '*' # Runs on any push to any branch | |
pull_request: | |
branches: | |
- '*' # Runs on any pull request targeting any branch | |
name: Lint commits | |
jobs: | |
lint-commits: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Fixup git permissions | |
# https://github.com/actions/checkout/issues/766 | |
shell: bash | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- uses: actions/[email protected] | |
- run: npm install conventional-changelog | |
- run: npm install @commitlint/cli | |
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD |