Skip to content

Commit c4eab33

Browse files
committed
scripts/publish: Fix archive path from GitHub downloaded zip. [skip ci]
1 parent 3c654af commit c4eab33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/publish.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ createPatchedContext(rootDir, '', () => {
3838
if (fs.existsSync(distDir)) {
3939
rimraf.sync(distDir);
4040
}
41-
fs.renameSync(path.join(workDir, 'archive', 'dist'), distDir);
41+
fs.renameSync(path.join(workDir, 'dist'), distDir);
4242
const publishArgs = ['publish', '--tag', commander.tag];
4343
if (commander.dryRun) {
4444
publishArgs.push('--dry-run');
@@ -55,7 +55,7 @@ createPatchedContext(rootDir, 'unstripped', () => {
5555
if (fs.existsSync(distDir)) {
5656
rimraf.sync(distDir);
5757
}
58-
fs.renameSync(path.join(workDir, 'archive', 'dist.unstripped'), distDir);
58+
fs.renameSync(path.join(workDir, 'dist.unstripped'), distDir);
5959
const publishArgs = ['publish', '--tag', `${commander.tag}-unstripped`];
6060
if (commander.dryRun) {
6161
publishArgs.push('--dry-run');

0 commit comments

Comments
 (0)