Skip to content

Commit

Permalink
build(website): use ssh auth if no GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
eventualbuddha committed Sep 8, 2019
1 parent 7e10010 commit 00203c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/update-website.ts
Expand Up @@ -25,7 +25,7 @@ async function pkg(): Promise<{}> {

async function configureGithubRemote(name: string, project: string): Promise<void> {
const githubToken = process.env['GH_TOKEN'] || process.env['GITHUB_TOKEN'];
const url = githubToken ? `https://${githubToken}@github.com/${project}.git` : `https://github.com/${project}.git`;
const url = githubToken ? `https://${githubToken}@github.com/${project}.git` : `git@github.com:${project}.git`;

try {
await run('git', ['remote', 'remove', 'website']);
Expand Down

0 comments on commit 00203c5

Please sign in to comment.