mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-01 15:47:41 +08:00
ci: Fix paths with spaces for Windows compatibility (#21017)
This commit is contained in:
@@ -34,7 +34,7 @@ function generateUserManagementEmailTemplates() {
|
||||
if (template.startsWith('_')) return;
|
||||
const source = path.resolve(sourceDir, template);
|
||||
const destination = path.resolve(destinationDir, template.replace(/\.mjml$/, '.handlebars'));
|
||||
const command = `pnpm mjml --output ${destination} ${source}`;
|
||||
const command = `pnpm mjml --output "${destination}" "${source}"`;
|
||||
shell.exec(command, { silent: false });
|
||||
});
|
||||
|
||||
@@ -68,7 +68,7 @@ function bundleOpenApiSpecs() {
|
||||
}, [])
|
||||
.forEach((specPath) => {
|
||||
const distSpecPath = path.resolve(ROOT_DIR, 'dist', specPath);
|
||||
const command = `pnpm openapi bundle src/${specPath} --output ${distSpecPath}`;
|
||||
const command = `pnpm openapi bundle "src/${specPath}" --output "${distSpecPath}"`;
|
||||
|
||||
shell.exec(command, { silent: true });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user