From 11421af5a0a559a54177441ded4e7fbecf9fe63a Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Sun, 31 Dec 2023 16:13:29 -0600 Subject: [PATCH] ci: :construction_worker: update gh action to trigger commitlint on each push in every branch --- .github/workflows/commit-message-lint.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/commit-message-lint.yml b/.github/workflows/commit-message-lint.yml index f5526f6cf..9015ef1fd 100644 --- a/.github/workflows/commit-message-lint.yml +++ b/.github/workflows/commit-message-lint.yml @@ -2,9 +2,7 @@ name: Lint Commit Messages on: push: - branches: [ main, develop ] pull_request: - branches: [ main, develop ] jobs: commitlint: @@ -19,11 +17,10 @@ jobs: - name: Install Node.js uses: actions/setup-node@v2 with: - node-version: '20.3.1' + node-version: 'lts/*' - - name: Install commitlint - run: | - npm install @commitlint/{config-conventional,cli} + - name: Install Dependencies + run: yarn install - name: Lint Commit Messages run: npx commitlint --from=HEAD~1 --to=HEAD --verbose