fix: Add cleaner logging to build script (no-changelog) (#16952)

This commit is contained in:
shortstacked
2025-07-03 10:37:30 +01:00
committed by GitHub
parent faea69cbc2
commit 91fe5109b5
2 changed files with 18 additions and 3 deletions

View File

@@ -5,6 +5,9 @@
name: 'Docker: Build and Push'
env:
NODE_OPTIONS: '--max-old-space-size=8192'
on:
schedule:
- cron: '0 0 * * *'

View File

@@ -84,9 +84,21 @@ echo(chalk.yellow('INFO: Starting local application pre-build...'));
startTimer('package_build');
echo(chalk.yellow('INFO: Running pnpm install and build...'));
await $`cd ${config.rootDir} && pnpm install --frozen-lockfile`;
await $`cd ${config.rootDir} && pnpm build`;
try {
const installProcess = $`cd ${config.rootDir} && pnpm install --frozen-lockfile`;
installProcess.pipe(process.stdout);
await installProcess;
const buildProcess = $`cd ${config.rootDir} && pnpm build`;
buildProcess.pipe(process.stdout);
await buildProcess;
echo(chalk.green('✅ pnpm install and build completed'));
} catch (error) {
console.error(chalk.red('\n🛑 BUILD PROCESS FAILED!'));
console.error(chalk.red('An error occurred during the build process:'));
process.exit(1);
}
const packageBuildTime = getElapsedTime('package_build');
echo(chalk.green(`✅ Package build completed in ${formatDuration(packageBuildTime)}`));