From 79fa3409094b62d54bd2a5173f5b68c34093f1c1 Mon Sep 17 00:00:00 2001 From: "kiyoshi.guo" Date: Wed, 1 May 2024 10:14:53 -0700 Subject: [PATCH] chore(*): replaced original commitlint gh action --- .github/workflows/commitlint.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index f57fff5..a800c48 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -8,6 +8,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Install Dependencies - run: npm install @commitlint/config-conventional - - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + - name: Install commitlint + run: | + npm install conventional-changelog-conventionalcommits + npm install commitlint@latest + + - name: Validate PR title with commitlint + if: github.event_name == 'pull_request' + run: npx commitlint --from '${{ github.event.pull_request.title }}' --to '${{ github.event.pull_request.title }}' --verbose \ No newline at end of file