diff --git a/docs/guides-ci-setup.md b/docs/guides-ci-setup.md index d98cbe1530..34ca7cb7d6 100644 --- a/docs/guides-ci-setup.md +++ b/docs/guides-ci-setup.md @@ -19,9 +19,11 @@ jobs: commitlint: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - name: Install required dependencies run: | apt update @@ -29,16 +31,9 @@ jobs: 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: Install commitlint - run: | - npm install conventional-changelog-conventionalcommits - npm install commitlint@latest + run: npm install --global @commitlint/{cli,config-conventional} - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push'