mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
Pin provider-pack producer Node to the image version
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
557c3064a3
commit
33077bed73
3 files changed
+17
-1
No files matched your search
@@ -40,7 +40,15 @@ const workflowRoot = path.join(repoRoot, ".github", "workflows");
|
||||
walk(workflowRoot, (filePath) => {
|
||||
if (!/\.ya?ml$/.test(filePath)) return;
|
||||
const source = fs.readFileSync(filePath, "utf8");
|
||||
// Release packs ship the interpreter itself, so their producer must match
|
||||
// the image's exact Node patch. Other CI jobs continue tracking Node 24.
|
||||
const packProducer = relative(filePath) === ".github/workflows/release-verify.yml"
|
||||
? /(?:^|\n) runner_binaries:\n[\s\S]*?(?=\n [a-z_]+:\n|$)/.exec(source)
|
||||
: null;
|
||||
for (const match of source.matchAll(/node-version:\s*["']?([^\s"'#]+)/g)) {
|
||||
if (match[1] === "24.21.0" && packProducer
|
||||
&& match.index >= packProducer.index
|
||||
&& match.index < packProducer.index + packProducer[0].length) continue;
|
||||
if (match[1] !== "24") failures.push(`${relative(filePath)}: node-version must be 24, found ${match[1]}`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user