Skip to content

Commit a96a3ca

Browse files
committed
Merge branch 'main' into dev
2 parents 5db627e + fbd5579 commit a96a3ca

File tree

4,576 files changed

+134393
-63062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,576 files changed

+134393
-63062
lines changed

.bazelrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ test:saucelabs --flaky_test_attempts=1
158158

159159
# --ng_perf will ask the Ivy compiler to produce performance results for each build.
160160
build --flag_alias=ng_perf=//packages/compiler-cli:ng_perf
161-
# --adev_fast will run adev build/serve in a faster mode, skipping things like prerendering
162-
# for local development.
163-
build --flag_alias=fast_adev=//adev:fast_build_mode
161+
# --prerender_adev will run adev build/serve in a full mode, performing prerendering
162+
build --flag_alias=prerender_adev=//adev:prerender_adev
164163

165164
####################################################
166165
# User bazel configuration

.github/actions/deploy-docs-site/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
serviceKey:
66
description: 'The service key used for firebase deployments.'
77
required: true
8+
githubReleaseTrainReadToken:
9+
description: 'GitHub access token for reading release trains without rate limits.'
10+
required: true
811
configPath:
912
description: 'The path to the firebase config file.'
1013
required: true

.github/actions/deploy-docs-site/lib/credential.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ export function getCredentialFilePath(): string {
1313
}
1414
return credentialFilePath;
1515
}
16+
17+
/** Github access token. Used for querying the active release trains. */
18+
export const githubReleaseTrainReadToken: string = getInput('githubReleaseTrainReadToken', {
19+
required: true,
20+
});

.github/actions/deploy-docs-site/lib/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export async function setupRedirect(deployment: Deployment) {
103103
}
104104

105105
function firebase(cmd: string, cwd?: string) {
106-
spawnSync('npx', `-y firebase-tools@latest ${cmd}`.split(' '), {
106+
spawnSync('npx', `-y firebase-tools@13.15.1 ${cmd}`.split(' '), {
107107
cwd,
108108
encoding: 'utf-8',
109109
shell: true,

.github/actions/deploy-docs-site/lib/deployments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {fetchLongTermSupportBranchesFromNpm, ActiveReleaseTrains} from '@angular/ng-dev';
22
import {ReleaseConfig} from '@angular/ng-dev';
3-
import {GitClient} from '@angular/ng-dev';
3+
import {AuthenticatedGitClient} from '@angular/ng-dev';
44

55
export interface Deployment {
66
branch: string;
@@ -14,7 +14,7 @@ export interface Deployment {
1414
export type Deployments = Map<string, Deployment>;
1515

1616
export async function getDeployments(): Promise<Deployments> {
17-
const {github} = await GitClient.get();
17+
const {github} = await AuthenticatedGitClient.get();
1818
const releaseTrains = await ActiveReleaseTrains.fetch({
1919
api: github,
2020
name: 'angular',

.github/actions/deploy-docs-site/lib/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {getInput, setFailed} from '@actions/core';
22
import {context} from '@actions/github';
33
import {deployToFirebase, setupRedirect} from './deploy';
44
import {getDeployments} from './deployments';
5-
import {GithubConfig, setConfig} from '@angular/ng-dev';
5+
import {AuthenticatedGitClient, GithubConfig, setConfig} from '@angular/ng-dev';
6+
import {githubReleaseTrainReadToken} from './credential';
67

78
const refMatcher = /refs\/heads\/(.*)/;
89

@@ -14,6 +15,9 @@ async function deployDocs() {
1415
owner: 'angular',
1516
},
1617
});
18+
19+
AuthenticatedGitClient.configure(githubReleaseTrainReadToken);
20+
1721
if (context.eventName !== 'push') {
1822
throw Error();
1923
}

0 commit comments

Comments
 (0)