Skip to content

Commit

Permalink
chore(cli): 调整commitlint action
Browse files Browse the repository at this point in the history
  • Loading branch information
czfadmin committed Apr 3, 2024
1 parent 3b43aad commit f0ed359
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ on: [push, pull_request]
jobs:
commitlint:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
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: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Print versions
run: |
git --version
Expand Down

0 comments on commit f0ed359

Please sign in to comment.