ci: use biome
This commit is contained in:
parent
7cd2acc5dd
commit
e015c52350
2 changed files with 15 additions and 7 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
|
@ -3,7 +3,7 @@ name: CI
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
biome:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout branch
|
- name: Checkout branch
|
||||||
|
|
@ -14,8 +14,8 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
cache: "pnpm"
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm i --frozen-lockfile
|
run: pnpm i --frozen-lockfile
|
||||||
- name: Run lint
|
- name: Run biome
|
||||||
run: pnpm run lint
|
run: pnpm biome ci --error-on-warnings
|
||||||
|
|
|
||||||
14
package.json
14
package.json
|
|
@ -10,11 +10,17 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf dist && tsc",
|
"build": "rimraf dist && tsc",
|
||||||
"lint": "eslint src --ignore-path .gitignore",
|
"lint": "biome check",
|
||||||
"release": "semantic-release",
|
"release": "semantic-release",
|
||||||
"prepack": "pnpm build"
|
"prepack": "pnpm build"
|
||||||
},
|
},
|
||||||
"keywords": ["comcigan", "parser", "typescript", "school", "korean"],
|
"keywords": [
|
||||||
|
"comcigan",
|
||||||
|
"parser",
|
||||||
|
"typescript",
|
||||||
|
"school",
|
||||||
|
"korean"
|
||||||
|
],
|
||||||
"author": "Starcea <stardev.uwu@gmail.com>",
|
"author": "Starcea <stardev.uwu@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a",
|
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a",
|
||||||
|
|
@ -32,6 +38,8 @@
|
||||||
"iconv-lite": "^0.6.3"
|
"iconv-lite": "^0.6.3"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"branches": ["release"]
|
"branches": [
|
||||||
|
"release"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue