chore(ci): update actions/checkout to v4 (#6438) #82
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: pre-commit hooks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run-pre-commit-hooks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn install --frozen-lockfile | |
- name: run pre-commit hooks | |
run: | | |
yarn lint-staged | |
yarn lint:versions | |
yarn lint:dependencies |