feat: add auto update dep hook #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commitlint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
commitlint: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'pnpm' | |
check-latest: true | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run commitlint | |
id: run_commitlint | |
uses: wagoid/commitlint-github-action@v5 | |
with: | |
configFile: .commitlintrc.js | |
env: | |
NODE_PATH: ${{ github.workspace }}/node_modules | |
- name: Show outputs | |
if: ${{ always() }} | |
run: echo ${{ toJSON(steps.run_commitlint.outputs.results) }} |