Skip to content

Commit 500eb14

Browse files
committed
chore: run lint without installing the repo
1 parent 3171614 commit 500eb14

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,8 @@ jobs:
3030
with:
3131
node-version: lts/*
3232

33-
- uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c
34-
name: Install pnpm
35-
with:
36-
cache: true
37-
38-
- name: 📦 Install dependencies
39-
run: pnpm install
40-
4133
- name: 🔠 Lint project
42-
run: pnpm lint
34+
run: node --run lint:ci
4335

4436
test:
4537
runs-on: ubuntu-latest

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"knip": "knip",
2020
"knip:fix": "knip --fix",
2121
"lint": "vite lint && vite fmt --check",
22+
"lint:ci": "npx oxlint && npx oxfmt --check",
2223
"lint:fix": "vite lint --fix && vite fmt",
2324
"generate": "nuxt generate",
2425
"npmx-connector": "pnpm --filter npmx-connector dev",

0 commit comments

Comments
 (0)