Skip to content

Commit 1b1d3bf

Browse files
committed
fix: stop release flow after npm publish failure
1 parent 69a39d6 commit 1b1d3bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function publishToNpm() {
461461
console.log(chalk.yellow(' npm login --registry https://registry.npmjs.org/'));
462462
console.log(chalk.yellow(' npm publish --access public --registry https://registry.npmjs.org/'));
463463

464-
// 不抛出错误,让后续的git推送仍能执行
464+
throw new Error(`npm publish failed: ${error.message}`);
465465
}
466466
}
467467

0 commit comments

Comments
 (0)