Skip to content

Commit

Permalink
fix: always emit files into .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 7, 2022
1 parent 16274e4 commit f79fe49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ const registerTsNode = (options = {}) => {
return;
}

tsNode.register({...options });
tsNode.register({ ...options });
tsNodeRegistered = true;
};

export const build = async () => {

registerTsNode();

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

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

0 comments on commit f79fe49

Please sign in to comment.