MCPcopy Create free account
hub / github.com/alibaba/open-code-review / runBlock

Function runBlock

scripts/github-actions/release-contract.test.js:35–45  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

33}
34
35function runBlock(step) {
36 const lines = step.split("\n");
37 const start = lines.indexOf(" run: |");
38 assert.ok(start >= 0, "expected a multiline run block");
39 const script = [];
40 for (const line of lines.slice(start + 1)) {
41 if (line.trim() && !line.startsWith(" ")) break;
42 script.push(line.slice(10));
43 }
44 return script.join("\n");
45}
46
47const PREFLIGHT = stepText("verify-trusted-publishing", "Exchange OIDC token for every package");
48const VERSION_GATE = stepText("npm-publish", "Ensure npm supports trusted publishing");

Callers 2

executeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected