chore(deps): update all non-major github action dependencies #8
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: Conventional commit lint | |
on: | |
pull_request: | |
jobs: | |
conventional-commit-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get all PR commits | |
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" | |
- name: Checkout | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: '20.x' | |
- name: Setup commitlint | |
run: | | |
npm install -g @commitlint/config-conventional @commitlint/cli | |
- name: Validate all PR commits | |
run: | | |
npx commitlint \ | |
--extends '@commitlint/config-conventional' \ | |
--from HEAD~${{ github.event.pull_request.commits }} \ | |
--to HEAD \ | |
--verbose |