mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: use pnpm for linting action
This commit is contained in:
parent
212c50768f
commit
d88c91c5d7
1 changed files with 14 additions and 8 deletions
22
.github/workflows/web-lint.yaml
vendored
22
.github/workflows/web-lint.yaml
vendored
|
|
@ -9,16 +9,22 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
next-lint:
|
next-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [18]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v3
|
||||||
uses: actions/checkout@v2
|
- uses: pnpm/action-setup@v2
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
version: 8
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: "pnpm"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: pnpm install
|
||||||
working-directory: ./apps/web
|
working-directory: ./apps/web
|
||||||
- name: Lint code
|
- name: Lint
|
||||||
run: npm run lint
|
run: pnpm run lint
|
||||||
working-directory: ./apps/web
|
working-directory: ./apps/web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue