build: fix publish snapshot job not working (#13948)

Fixes that the publish snapshot job is not able to push the artifacts to Github.
This commit is contained in:
Paul Gschwendtner
2018-11-02 22:29:57 +01:00
committed by Jeremy Elbourn
parent 44f616a929
commit 94c60d661a
+5
View File
@@ -215,6 +215,11 @@ 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://git@github.com.insteadof"
- *checkout_code
- *restore_cache
- *yarn_install