Skip to content

Commit

Permalink
scripts/publish: Fix archive path from GitHub downloaded zip. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Mar 21, 2021
1 parent 3c654af commit c4eab33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit c4eab33

Please sign in to comment.