From c4eab33ef5b72526821938e347148bbe8c3b4c50 Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Sun, 21 Mar 2021 21:49:25 +0800 Subject: [PATCH] scripts/publish: Fix archive path from GitHub downloaded zip. [skip ci] --- scripts/publish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/publish.js b/scripts/publish.js index bfb93d0c4..b8f23a7cd 100755 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -38,7 +38,7 @@ createPatchedContext(rootDir, '', () => { if (fs.existsSync(distDir)) { rimraf.sync(distDir); } - fs.renameSync(path.join(workDir, 'archive', 'dist'), distDir); + fs.renameSync(path.join(workDir, 'dist'), distDir); const publishArgs = ['publish', '--tag', commander.tag]; if (commander.dryRun) { publishArgs.push('--dry-run'); @@ -55,7 +55,7 @@ createPatchedContext(rootDir, 'unstripped', () => { if (fs.existsSync(distDir)) { rimraf.sync(distDir); } - fs.renameSync(path.join(workDir, 'archive', 'dist.unstripped'), distDir); + fs.renameSync(path.join(workDir, 'dist.unstripped'), distDir); const publishArgs = ['publish', '--tag', `${commander.tag}-unstripped`]; if (commander.dryRun) { publishArgs.push('--dry-run');