mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-10-01 13:07:05 -07:00
fix: bump @actions/cache to v4, fix lint-staged glob excluding dist/
@actions/cache: v3's cache service backend was sunset March 2025. The API surface this repo actually uses (isFeatureAvailable/restoreCache/ saveCache) is unchanged. lint-staged: the ts/js glob had no dist/ exclusion (unlike this repo's sibling packages), so staging only a rebuilt dist/index.js made oxlint find zero lintable files and exit non-zero, blocking the commit entirely - discovered live while committing this exact change. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
bc9c43afd7
commit
b69722c62e
+5
-4
@@ -21,18 +21,19 @@
|
||||
"setup:hooks": "node scripts/ensure-husky.mjs"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.@(ts|tsx|mts|js|jsx|mjs|cjs)": [
|
||||
"oxlint --fix --quiet",
|
||||
"!(dist)/**/*.@(ts|tsx|mts|js|jsx|mjs|cjs)": [
|
||||
"oxlint --fix --quiet --no-error-on-unmatched-pattern",
|
||||
"oxfmt --write"
|
||||
],
|
||||
"*.@(json|jsonc|json5|md|mdx|yaml|yml|css|scss|sass|html|toml)": "oxfmt --write",
|
||||
"!(dist)/**/*.@(json|jsonc|json5|md|mdx|yaml|yml|css|scss|sass|html|toml)": "oxfmt --write",
|
||||
"package.json": "oxfmt --write",
|
||||
".github/workflows/*.@(yml|yaml)": "actionlint"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.x"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.2.4",
|
||||
"@actions/cache": "^4.0.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/tool-cache": "^2.0.1"
|
||||
|
||||
Reference in New Issue
Block a user