Skip to content

Commit af51de7

Browse files
committed
ci: 🎡 fix publish --yes
1 parent f22ab4e commit af51de7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/actionsflow-core/src/workflow.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ export const getBuiltWorkflow = async (
289289
}[] = [];
290290
// jobs internal env
291291
const jobInternalEnvs: Record<string, string>[] = [];
292-
// todo
293292
for (let index = 0; index < trigger.results.length; index++) {
294293
const triggerResult = trigger.results[index];
295294
const { outputs, outcome, conclusion } = triggerResult;

‎scripts/publish.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
const exec = require("exec-sh").promise;
33
const fs = require("fs-extra");
44
const releaseFlagFileName = `.releaseflag`;
5+
const yargs = require(`yargs`);
6+
let argv = yargs.argv;
57

68
async function main() {
79
let lernaCmd = `npx lerna publish from-package `;
@@ -14,6 +16,9 @@ async function main() {
1416
if (releaseFlag.startsWith("pre")) {
1517
lernaCmd += `--dist-tag beta`;
1618
}
19+
if (process.env.CI === "true" || argv.yes || argv.ci) {
20+
lernaCmd += " --yes";
21+
}
1722
await run(lernaCmd);
1823
}
1924

0 commit comments

Comments
 (0)