fix eslint cache

This commit is contained in:
Stephen Zhou 2026-03-24 09:01:12 +08:00
parent 1ffac80220
commit d5449e6e84
No known key found for this signature in database
2 changed files with 8 additions and 1 deletions

View File

@ -84,6 +84,13 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
uses: ./.github/actions/setup-web
- name: Restore ESLint cache
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: web/.eslintcache
key: ${{ runner.os }}-web-eslint-${{ hashFiles('web/package.json', 'web/pnpm-lock.yaml', 'web/eslint.config.mjs', 'web/eslint.constants.mjs', 'web/plugins/eslint/**') }}
- name: Web style check
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: ./web

View File

@ -39,7 +39,7 @@
"i18n:check": "tsx ./scripts/check-i18n.js",
"knip": "knip",
"lint": "eslint --cache --concurrency=auto",
"lint:ci": "eslint --cache --concurrency 2",
"lint:ci": "eslint --cache --cache-strategy content --concurrency 2",
"lint:fix": "pnpm lint --fix",
"lint:quiet": "pnpm lint --quiet",
"lint:tss": "tsslint --project tsconfig.json",