Enable reachable Gitea npm cache

This commit is contained in:
Kevin
2026-09-04 02:50:04 -04:00
parent 052fa31d87
commit 09a491b16b
7 changed files with 17 additions and 8 deletions
+1
View File
@@ -227,6 +227,7 @@ for (const path of [
'.gitea/workflows/production-blog.yml',
]) {
const text = await readFile(path, 'utf8');
assert(/cache:\s*npm/.test(text) && /cache-dependency-path:\s*package-lock\.json/.test(text), `${path} must cache npm downloads by package-lock.json.`);
assert(text.includes('npm ci --prefer-offline --no-audit --no-fund'), `${path} must retain a clean lockfile install with quiet, cache-friendly npm options.`);
}