Skip to content

Commit

Permalink
Merge pull request #4668 from wix/fix/use-ssh-instead-of-https
Browse files Browse the repository at this point in the history
build(fix): avoid overriding the git remote url.
  • Loading branch information
asafkorem authored Dec 22, 2024
2 parents 271a63f + 2802a5e commit 70f1664
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/ci.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ function setupGitConfig() {
exec.execSyncSilent(`git config --global push.default simple`);
exec.execSyncSilent(`git config --global user.email "${process.env.GIT_EMAIL}"`);
exec.execSyncSilent(`git config --global user.name "${process.env.GIT_USER}"`);
const remoteUrl = new RegExp(`https?://(\\S+)`).exec(exec.execSyncRead(`git remote -v`))[1];
exec.execSyncSilent(`git remote set-url origin "https://${process.env.GIT_USER}:${process.env.GIT_TOKEN}@${remoteUrl}"`);
}

function setupNpmConfig() {
Expand Down

0 comments on commit 70f1664

Please sign in to comment.