From 613c33bf4462940ff908479b1a0eada877849ce0 Mon Sep 17 00:00:00 2001 From: Fraser Killip Date: Tue, 31 Mar 2020 20:54:00 +1300 Subject: [PATCH] Remove check for Github.com when using an access token This check isn't required and have successfully tested using a GitHub enterprise server. This tool doesn't work for me in CI without this change since I am not using SSH for auth --- bin/storybook_to_ghpages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/storybook_to_ghpages b/bin/storybook_to_ghpages index b59d445..6650087 100755 --- a/bin/storybook_to_ghpages +++ b/bin/storybook_to_ghpages @@ -59,7 +59,7 @@ console.log('=> Deploying storybook'); if (args.CI_DEPLOY) { const { host, repository } = parseRepo(GIT_URL); - if (host === 'github.com' && args.HOST_TOKEN) { + if (args.HOST_TOKEN) { GIT_URL = `https://${args.HOST_TOKEN}@${host}/${repository}`; } }