Switch to pnpm
, update projects, and more
#13
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: Prettier and ESLint | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
style: | |
name: Prettier and ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --ignore-scripts | |
- name: Run Prettier | |
run: pnpm run format:check | |
- name: Run ESLint | |
run: pnpm run lint | |
- name: Run TypeScript check | |
run: | | |
pnpm run sync | |
pnpm run check |