Skip to content

Commit 11fdc4c

Browse files
committed
feat: add lint action
1 parent 0ef61d3 commit 11fdc4c

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish-npm:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node 22
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
registry-url: https://registry.npmjs.org/
21+
cache: pnpm
22+
23+
- name: Setup PNPM
24+
uses: pnpm/[email protected]
25+
26+
- name: Install
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Check
30+
run: pnpm check

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"format": "prettier --write .",
99
"db:dev": "./pocketbase/dev.sh",
1010
"start": "tsm .",
11-
"check": "biome check"
11+
"check": "biome check && prettier --check ."
1212
},
1313
"license": "MIT",
1414
"dependencies": {

0 commit comments

Comments
 (0)