From f372ebe4853ed1725cca691289df569b57f0cfa6 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Mon, 14 Apr 2025 18:42:18 +0800 Subject: [PATCH] ci(after-build): move renameFilesWithSpaces call to the end of the process --- scripts/after-build.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/after-build.js b/scripts/after-build.js index 033a0aea..e8c1e824 100644 --- a/scripts/after-build.js +++ b/scripts/after-build.js @@ -23,9 +23,6 @@ async function afterBuild() { console.log('[After build] hook started...') try { - // First rename files with spaces - await renameFilesWithSpaces() - // Read the latest.yml file const latestYmlPath = path.join('dist', 'latest.yml') const yamlContent = fs.readFileSync(latestYmlPath, 'utf8') @@ -62,6 +59,9 @@ async function afterBuild() { fs.writeFileSync(latestYmlPath, newYamlContent, 'utf8') + // Rename files with spaces + await renameFilesWithSpaces() + console.log('Successfully cleaned up latest.yml data') } catch (error) { console.error('Error processing latest.yml:', error)