Skip to content

Commit

Permalink
build: circleci git config being updated too early (angular#13950)
Browse files Browse the repository at this point in the history
* Due to the fact that we try to run `git config --global` before
CircleCI set up the global Git configuration, the publish task is still
broken. This _should_ fix it.
  • Loading branch information
devversion authored and atscott committed Nov 5, 2018
1 parent b434199 commit ba004e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,16 @@ jobs:
name: Check whether this job should be skipped.
command: '[[ -n ${CIRCLE_PR_NUMBER} ]] && circleci step halt || true'

# CircleCI has a config setting to enforce SSH for all github connections.
# This is not compatible with our mechanism of using a Personal Access Token
# to publish the build snapshots. In order to fix this, we unset the global option.
- run: git config --global --unset "url.ssh://[email protected]"

- *checkout_code
- *restore_cache
- *yarn_install
- *attach_release_output

# CircleCI has a config setting to enforce SSH for all github connections.
# This is not compatible with our mechanism of using a Personal Access Token
# to publish the build snapshots. In order to fix this, we unset the global option.
- run: git config --global --unset "url.ssh://[email protected]"

- run: ./scripts/circleci/publish-snapshots.sh

- *save_cache
Expand Down

0 comments on commit ba004e1

Please sign in to comment.