Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions scripts/docs-deploy/github-versioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import {
getNextBranchName,
} from '@angular/dev-infra-private/ng-dev';

import {githubAccessToken} from './utils';

export function getReleaseRepoWithApi(): ReleaseRepoWithApi {
const githubClient =
process.env.GITHUB_TOKEN !== undefined
? new AuthenticatedGithubClient(process.env.GITHUB_TOKEN)
githubAccessToken !== undefined
? new AuthenticatedGithubClient(githubAccessToken)
: new GithubClient();
const {github} = getConfig([assertValidGithubConfig]);

Expand Down
3 changes: 3 additions & 0 deletions scripts/docs-deploy/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const sites = {
new SiteTarget(`v${major}-material-angular-io`, `https://v${major}.material.angular.io`),
};

/** Optional Github access token. Can be used for querying the active release trains. */
export const githubAccessToken: string | undefined = process.env.DOCS_DEPLOY_GITHUB_TOKEN;

/** Configuration describing the Firebase project that we deploy to. */
export const firebaseConfig = {
projectId: 'material-angular-io',
Expand Down