mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-04-01 01:04:16 +00:00
fix(ci): fixed commitlint GitHub CI action
This commit is contained in:
parent
19247de2b8
commit
c2316e8f3d
1 changed files with 16 additions and 13 deletions
29
.github/workflows/commitlint.yml
vendored
29
.github/workflows/commitlint.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue