(step)
| 33 | } |
| 34 | |
| 35 | function 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 | |
| 47 | const PREFLIGHT = stepText("verify-trusted-publishing", "Exchange OIDC token for every package"); |
| 48 | const VERSION_GATE = stepText("npm-publish", "Ensure npm supports trusted publishing"); |
no outgoing calls
no test coverage detected