Skip to content

chore: update linters (major) #849

chore: update linters (major)

chore: update linters (major) #849

name: lint commit message(s)
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TZ: Asia/Tokyo
jobs:
lint-commit-message:
name: lint commit message(s)
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-v2
- run: yarn install --frozen-lockfile
- run: >
npx commitlint
--from "${{ github.event.pull_request.base.sha }}"
--to "${{ github.event.pull_request.head.sha }}"
--verbose