fix(ci): fixed commitlint GitHub CI action

This commit is contained in:
Ahmad 2025-03-17 21:21:08 -04:00
parent 19247de2b8
commit c2316e8f3d
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF

View file

@ -4,24 +4,27 @@ on: [push, pull_request]
jobs: jobs:
commitlint: commitlint:
name: Run commitlint scanning
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node-version: [23.x]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install required dependencies
run: | - name: Configure Corepack
apt update run: corepack enable
apt install -y sudo
sudo apt install -y git curl - name: Use Node.js ${{ matrix.node-version }}
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - uses: actions/setup-node@v4
sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs with:
- name: Print versions node-version: ${{ matrix.node-version }}
run: | cache: yarn
git --version
node --version
npm --version
npx commitlint --version
- name: Install commitlint - name: Install commitlint
run: | run: |
yarn add conventional-changelog-conventionalcommits yarn add conventional-changelog-conventionalcommits