Skip to content

Commit f79fe49

Browse files
committed
fix: always emit files into .github/workflows
1 parent 16274e4 commit f79fe49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/build.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ const registerTsNode = (options = {}) => {
2222
return;
2323
}
2424

25-
tsNode.register({...options });
25+
tsNode.register({ ...options });
2626
tsNodeRegistered = true;
2727
};
2828

2929
export const build = async () => {
30-
3130
registerTsNode();
3231

3332
const workflowFilesPaths = getWorkflowsPaths();
@@ -41,7 +40,7 @@ export const build = async () => {
4140
const tsWorkflowPath = workflowFilesPaths[i];
4241
const exportedWorkflows = await import(tsWorkflowPath);
4342
for (const name in exportedWorkflows) {
44-
const yamlWorkflowPath = path.join(path.dirname(tsWorkflowPath), `${name}.yml`);
43+
const yamlWorkflowPath = path.join(".github", "workflows", `${name}.yml`);
4544
log(`Writing to ${relativePath(yamlWorkflowPath)}:`);
4645

4746
const content = jsYaml.dump(exportedWorkflows[name]);

0 commit comments

Comments
 (0)