Skip to content

Commit

Permalink
ci(commitlint): Modify the commitlint.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
czfadmin committed Apr 18, 2024
1 parent ff07ae9 commit 0403912
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,43 @@ jobs:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store
- name: Print versions
run: |
git --version
node --version
npm --version
pnpm --version
npx commitlint --version
- name: Install commitlint
run: |
pnpm add conventional-changelog-conventionalcommits
Expand Down

0 comments on commit 0403912

Please sign in to comment.