Skip to content

Commit

Permalink
chore: add config to fix pipeline release on production for elements (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
duong-se authored Feb 15, 2020
1 parent f62fc1e commit e7468e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/release/release-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const releaseNpm = async () => {
}

if (packageName === packageNameOnTag) {
execSync('git config --global url.ssh://[email protected]/.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'])
Expand Down
2 changes: 2 additions & 0 deletions scripts/release/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit e7468e7

Please sign in to comment.