Skip to content

Commit 9cf517f

Browse files
committed
feat: update origin to Angular v20.0.6
Switch to GitHub Actions for better Bazel support on the free tier. CircleCI's free plan lacks support for the required Bazel resource class and fails when running Bazel inside Docker. GitHub Actions offers more flexibility and compatibility for our current CI needs.
1 parent 34a8a20 commit 9cf517f

File tree

266 files changed

+16922
-4885
lines changed

Some content is hidden

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

266 files changed

+16922
-4885
lines changed

.circleci/config.yml

Lines changed: 3 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,8 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/configuration-reference
31
version: 2.1
42

5-
# Settings common to each job
6-
job_defaults: &job_defaults
7-
working_directory: ~/angular-docs-es
8-
docker:
9-
- image: cimg/node:lts-browsers
10-
11-
orbs:
12-
node: circleci/[email protected]
13-
build-tools: circleci/[email protected]
14-
browser-tools: circleci/[email protected]
15-
16-
commands:
17-
# Command for checking out the source code from GitHub. This also ensures that the source code
18-
# can be merged to the main branch without conflicts.
19-
checkout_and_rebase:
20-
description: Checkout and verify clean merge with main
21-
steps:
22-
- checkout
23-
- run:
24-
name: Set git user.name and user.email for rebase.
25-
# User is required for rebase.
26-
command: |
27-
git config user.name "Admin"
28-
git config user.email "[email protected]"
29-
- build-tools/merge-with-parent:
30-
parent: main
31-
setup:
32-
description: 'Set up executor'
33-
steps:
34-
- attach_workspace:
35-
at: ~/
36-
setup_firebase_auth:
37-
description: 'Set up Firebase authentication'
38-
steps:
39-
- run:
40-
name: Create a google_service_account.json
41-
command: |
42-
echo $GSA_KEY > $GOOGLE_APPLICATION_CREDENTIALS
43-
44-
# ----------------------------------
45-
# Job definitions.
46-
# ----------------------------------
47-
483
jobs:
49-
# ----------------------------------
50-
# initialize job
51-
# ----------------------------------
52-
initialize:
53-
<<: *job_defaults
54-
steps:
55-
- checkout_and_rebase
56-
- node/install-packages
57-
- persist_to_workspace:
58-
root: ~/
59-
paths:
60-
- angular-docs-es
61-
# -----------------------------------
62-
# Build job.
63-
# -----------------------------------
644
build:
65-
<<: *job_defaults
5+
docker:
6+
- image: cimg/node:lts-browsers
667
steps:
67-
- setup
68-
- checkout
69-
- run:
70-
name: Build project in CI mode (pre build)
71-
command: npm run build:ci
72-
- run:
73-
name: Installing packages
74-
working_directory: ./build
75-
command: yarn install
76-
- run:
77-
name: Build adev-es docs
78-
working_directory: ./build
79-
command: yarn bazel build //adev:build --fast_adev --local_ram_resources="HOST_RAM*.90" --jobs=1
80-
- persist_to_workspace:
81-
root: ~/
82-
paths:
83-
- angular-docs-es/build/dist/bin/adev/build/browser
84-
85-
# -----------------------------------
86-
# Firebase deploy to staging job.
87-
# -----------------------------------
88-
firebase-deploy-staging:
89-
<<: *job_defaults
90-
steps:
91-
- setup
92-
- setup_firebase_auth
93-
- run:
94-
name: 'Deploy Main Branch to Firebase Hosting'
95-
command: |
96-
npm run deploy:staging
97-
98-
workflows:
99-
build-workflow:
100-
jobs:
101-
- initialize
102-
- build:
103-
requires:
104-
- initialize
105-
- firebase-deploy-staging:
106-
filters:
107-
branches:
108-
only:
109-
- main
110-
requires:
111-
- build
8+
- run: echo 'No checks.'
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build adev and deploy to staging
2+
3+
on:
4+
push:
5+
branches:
6+
- update-origin-to-angular-20.0.6
7+
8+
env:
9+
BAZEL_REPO_CACHE_PATH: '~/.cache/bazel_repo_cache'
10+
11+
jobs:
12+
adev-build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/[email protected]
17+
with:
18+
submodules: true
19+
- name: Setup Node JS
20+
uses: actions/[email protected]
21+
- name: Setup Bazel
22+
uses: bazel-contrib/[email protected]
23+
with:
24+
bazelisk-cache: true
25+
disk-cache: true
26+
repository-cache: true
27+
bazelrc: |
28+
# Print all the options that apply to the build.
29+
# This helps us diagnose which options override others
30+
# (e.g. /etc/bazel.bazelrc vs. tools/bazel.rc)
31+
build --announce_rc
32+
33+
# More details on failures
34+
build --verbose_failures=true
35+
36+
# CI supports colors but Bazel does not detect it.
37+
common --color=yes
38+
- name: Install Dependencies
39+
run: npm ci
40+
- name: Build Docs
41+
run: npm run build
42+
- name: Deploy to Firebase Hosting
43+
uses: FirebaseExtended/action-hosting-deploy@v0
44+
with:
45+
repoToken: "${{ secrets.ANGULAR_DOCS_ES_TOKEN }}"
46+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
47+
projectId: angular-hispano-staging
48+
channelId: live
49+
target: staging

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI (Pull Request)
2+
3+
on: [pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build-adev:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/[email protected]
14+
with:
15+
submodules: true
16+
- name: Setup Node JS
17+
uses: actions/[email protected]
18+
- name: Setup Bazel
19+
uses: bazel-contrib/[email protected]
20+
with:
21+
bazelisk-cache: true
22+
disk-cache: true
23+
repository-cache: true
24+
- name: Install Dependencies
25+
run: npm ci
26+
- name: Build Docs
27+
run: npm run build

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18.2
1+
20.19.2

adev-es/src/app/core/constants/links.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ export const GITHUB = 'https://github.com/angular-hispano/angular-docs-es';
22
export const X = 'https://x.com/AngularHispana';
33
export const DISCORD = 'https://discord.com/invite/4cWb6SKUcb';
44
export const MEDIUM = '';
5-
export const YOUTUBE = '';
5+
export const YOUTUBE = '';
6+
export const BLUESKY = '';
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<div class="adev-footer-container">
2+
<div class="adev-footer-columns">
3+
<div>
4+
<h2>Social Media</h2>
5+
<ul>
6+
<li>
7+
<a [href]="MEDIUM" title="Angular blog">Blog</a>
8+
</li>
9+
<li>
10+
<a [href]="X" title="X (formerly Twitter)">X (formerly Twitter)</a>
11+
</li>
12+
<li>
13+
<a [href]="BLUESKY" title="Bluesky">Bluesky</a>
14+
</li>
15+
<li>
16+
<a [href]="YOUTUBE" title="YouTube">YouTube</a>
17+
</li>
18+
<li>
19+
<a
20+
href="https://discord.gg/angular"
21+
title="Join the discussions at Angular Community Discord server."
22+
>
23+
Discord
24+
</a>
25+
</li>
26+
<li>
27+
<a [href]="GITHUB" title="GitHub">GitHub</a>
28+
</li>
29+
<li>
30+
<a
31+
href="https://stackoverflow.com/questions/tagged/angular"
32+
title="Stack Overflow: where the community answers your technical Angular questions."
33+
>
34+
Stack Overflow
35+
</a>
36+
</li>
37+
</ul>
38+
</div>
39+
<div>
40+
<h2>Community</h2>
41+
<ul>
42+
<li>
43+
<a
44+
href="https://github.com/angular/angular/blob/main/CONTRIBUTING.md"
45+
title="Contribute to Angular"
46+
>
47+
Contribute
48+
</a>
49+
</li>
50+
<li>
51+
<a
52+
href="https://github.com/angular/code-of-conduct/blob/main/CODE_OF_CONDUCT.md"
53+
title="Treating each other with respect."
54+
>
55+
Code of Conduct
56+
</a>
57+
</li>
58+
<li>
59+
<a
60+
href="https://github.com/angular/angular/issues"
61+
title="Post issues and suggestions on github."
62+
>
63+
Report Issues
64+
</a>
65+
</li>
66+
<li>
67+
<a
68+
href="https://devlibrary.withgoogle.com/products/angular?sort=updated"
69+
title="Google's DevLibrary"
70+
>
71+
Google's DevLibrary
72+
</a>
73+
</li>
74+
<li>
75+
<a
76+
href="https://developers.google.com/community/experts/directory?specialization=angular"
77+
title="Angular Google Developer Experts"
78+
>
79+
Angular Google Developer Experts
80+
</a>
81+
</li>
82+
</ul>
83+
</div>
84+
<div>
85+
<h2>Resources</h2>
86+
<ul>
87+
<li>
88+
<a routerLink="/press-kit" title="Press contacts, logos, and branding.">Press Kit</a>
89+
</li>
90+
<li>
91+
<a routerLink="/roadmap" title="Roadmap">Roadmap</a>
92+
</li>
93+
</ul>
94+
</div>
95+
<div>
96+
<h2>Languages</h2>
97+
<ul>
98+
<li>
99+
<a href="https://angular.cn/" title="简体中文版">简体中文版</a>
100+
</li>
101+
<li>
102+
<a href="https://dev.angular.tw/" title="正體中文版">正體中文版</a>
103+
</li>
104+
<li>
105+
<a href="https://angular.jp/" title="日本語版">日本語版</a>
106+
</li>
107+
<li>
108+
<a href="https://angular.kr/" title="한국어">한국어</a>
109+
</li>
110+
</ul>
111+
</div>
112+
</div>
113+
<p class="docs-license">
114+
Super-powered by Google ©2010-2025. Code licensed under an
115+
<a routerLink="/license" title="License text">MIT-style License</a>
116+
. Documentation licensed under
117+
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>
118+
.
119+
</p>
120+
</div>

0 commit comments

Comments
 (0)