We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a39d6 commit 1b1d3bfCopy full SHA for 1b1d3bf
1 file changed
packages/cli/scripts/release.js
@@ -461,7 +461,7 @@ function publishToNpm() {
461
console.log(chalk.yellow(' npm login --registry https://registry.npmjs.org/'));
462
console.log(chalk.yellow(' npm publish --access public --registry https://registry.npmjs.org/'));
463
464
- // 不抛出错误,让后续的git推送仍能执行
+ throw new Error(`npm publish failed: ${error.message}`);
465
}
466
467
0 commit comments