Skip to content

chore(deps): update dependency conventional-changelog-conventionalcommits to v10 #1426

chore(deps): update dependency conventional-changelog-conventionalcommits to v10

chore(deps): update dependency conventional-changelog-conventionalcommits to v10 #1426

name: Conventional Commit
on:
workflow_dispatch: {}
push:
branches: [ main, '+.x', beta, alpha ]
pull_request:
branches: [ main, '+.x', beta, alpha ]
permissions: {}
jobs:
commit-check:
name: Commit check
runs-on: ubuntu-24.04
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Harden runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
disable-sudo-and-containers: true
egress-policy: block
allowed-endpoints: >
github.com:443
*.github.qkg1.top:443
registry.npmjs.org:443
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0 # Required by commitlint
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 24
cache: npm
cache-dependency-path: .github/release/package-lock.json
- name: Install commitlint
working-directory: .github/release/
run: npm clean-install --engine-strict
- name: Validate current commit (last commit) with commitlint
if: ${{ github.event_name != 'pull_request' }}
working-directory: .github/release/
run: npx --no-install commitlint --verbose --last
- name: Validate PR commits with commitlint
if: ${{ github.event_name == 'pull_request' }}
working-directory: .github/release/
run: |
npx --no-install commitlint --verbose \
--from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} \
--to ${{ github.event.pull_request.head.sha }}