chore: 改进 CI 配置

This commit is contained in:
SvenFE
2025-08-31 02:01:21 +08:00
parent dd3167b211
commit bba0a42e9b
2 changed files with 13 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
name: ESLint
name: Test
on:
push:
@@ -9,7 +9,7 @@ on:
- dev
jobs:
test:
install-lint-build:
runs-on: ubuntu-latest
steps:
@@ -26,9 +26,16 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
run: |
set -o pipefail
pnpm install --frozen-lockfile
- name: ESLint
- name: Run Prettier check
run: |
set -o pipefail
pnpm format:check
- name: Run ESLint check
run: |
set -o pipefail
pnpm lint:check

3
.npmrc
View File

@@ -1,2 +1,3 @@
public-hoist-pattern[]=*@heroui/*
package-lock=true
package-lock=true
color=always