Avoid unreachable Gitea runner cache

This commit is contained in:
Kevin
2026-09-04 02:09:46 -04:00
parent 6fa54a23d9
commit 052fa31d87
7 changed files with 9 additions and 15 deletions
+1 -2
View File
@@ -227,8 +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 while preferring the cache.`);
assert(text.includes('npm ci --prefer-offline --no-audit --no-fund'), `${path} must retain a clean lockfile install with quiet, cache-friendly npm options.`);
}
console.log('Verified Decap backend, four content contracts, fixed page images, bounded media, admin pin, and stable PR status context.');