diff --git a/scripts/release/release-npm.js b/scripts/release/release-npm.js index ce5c6beb22..f80bd1481c 100644 --- a/scripts/release/release-npm.js +++ b/scripts/release/release-npm.js @@ -13,6 +13,7 @@ const releaseNpm = async () => { } if (packageName === packageNameOnTag) { + execSync('git config --global url.ssh://git@github.com/.insteadOf https://github.com/') execSync(`git config --global user.email "${process.env.GITHUB_ACTOR}@email.com"`) execSync(`git config --global user.name "${process.env.GITHUB_ACTOR}"`) runCommand('yarn', ['publish']) diff --git a/scripts/release/utils.js b/scripts/release/utils.js index ec76ec2f7f..c49dde0915 100644 --- a/scripts/release/utils.js +++ b/scripts/release/utils.js @@ -12,8 +12,10 @@ const runCommand = (cmd, args) => { const { stdout, stderr } = resultObj if (stderr.length !== 0) { + console.error(stderr.toString().trim()) throw new Error(stderr.toString().trim()) } + console.log(stdout.toString().trim()) return stdout.toString().trim() }