Skip to content

Commit bffc639

Browse files
committed
build(website): actually use our --dry-run state for the npm publish dry run flag
1 parent e18a85c commit bffc639

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/release-cli/src/npm_utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ export const npmExecPublish = ({
5050

5151
const otpStr = otp ? `--otp ${otp}` : '';
5252
const dryRunStr = dryRun ? '--dry-run' : '';
53-
console.log(dryRunStr);
54-
// TODO: Un-hardcode the tag and dry-run arguments
53+
// TODO: Un-hardcode the tag argument
5554
return execSync(
56-
`npm publish ${packageArchivePath} --tag snapshot --access public --dry-run ${otpStr}`,
55+
`npm publish ${packageArchivePath} --tag snapshot --access public ${dryRunStr} ${otpStr}`,
5756
{ stdio: 'inherit', encoding: 'utf8' }
5857
);
5958
};

0 commit comments

Comments
 (0)