From c2316e8f3db64274ad16311d90f04a3f306abed8 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Mon, 17 Mar 2025 21:21:08 -0400 Subject: [PATCH] fix(ci): fixed commitlint GitHub CI action --- .github/workflows/commitlint.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 39d8be2..24ab2fd 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -4,24 +4,27 @@ on: [push, pull_request] jobs: commitlint: + name: Run commitlint scanning runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [23.x] + steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install required dependencies - run: | - apt update - apt install -y sudo - sudo apt install -y git curl - curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - - sudo DEBIAN_FRONTEND=noninteractive apt install -y nodejs - - name: Print versions - run: | - git --version - node --version - npm --version - npx commitlint --version + + - name: Configure Corepack + run: corepack enable + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + - name: Install commitlint run: | yarn add conventional-changelog-conventionalcommits