Skip to content

Commit 861fb67

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 31552e4 + 8504a85 commit 861fb67

File tree

235 files changed

+5235
-3665
lines changed

Some content is hidden

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

235 files changed

+5235
-3665
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ apps/site/redirects.json @nodejs/web-infra
3333

3434
# Critical Documents
3535
LICENSE @nodejs/tsc
36-
GOVERNANCE.md @nodejs/tsc
3736
CONTRIBUTING.md @nodejs/nodejs-website @nodejs/web-infra
3837
docs @nodejs/nodejs-website @nodejs/web-infra
3938
SECURITY.md @nodejs/security-wg

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,11 @@ jobs:
6969
NODE_OPTIONS: '--max_old_space_size=4096'
7070
# We want to ensure that static exports for all locales do not occur on `pull_request` events
7171
NEXT_PUBLIC_STATIC_EXPORT_LOCALE: ${{ github.event_name == 'push' }}
72+
# See https://github.com/vercel/next.js/pull/81318
73+
TURBOPACK_STATS: ${{ matrix.os == 'ubuntu-latest' }}
74+
75+
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
76+
if: matrix.os == 'ubuntu-latest'
77+
with:
78+
name: webpack-stats
79+
path: apps/site/.next/server/webpack-stats.json
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Compare Bundle Size
2+
3+
on:
4+
workflow_run:
5+
workflows: ['Build']
6+
types: [completed]
7+
8+
permissions:
9+
contents: read
10+
actions: read
11+
# To create the comment
12+
pull-requests: write
13+
14+
jobs:
15+
compare:
16+
name: Compare Bundle Stats
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Harden Runner
21+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
22+
with:
23+
egress-policy: audit
24+
25+
- name: Git Checkout
26+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+
28+
- name: Download Stats (HEAD)
29+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
30+
with:
31+
name: webpack-stats
32+
path: head-stats
33+
run-id: ${{ github.event.workflow_run.workflow_id }}
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Get Run ID from BASE
37+
id: base-run
38+
env:
39+
WORKFLOW_ID: ${{ github.event.workflow_run.workflow_id }}
40+
GH_TOKEN: ${{ github.token }}
41+
run: |
42+
ID=$(gh run list -c $GITHUB_SHA -w $WORKFLOW_ID -L 1 --json databaseId --jq ".[].databaseId")
43+
echo "run_id=$ID" >> $GITHUB_OUTPUT
44+
45+
- name: Download Stats (BASE)
46+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
47+
with:
48+
name: webpack-stats
49+
path: base-stats
50+
run-id: ${{ steps.base-run.outputs.run_id }}
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Compare Bundle Size
54+
id: compare-bundle-size
55+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
56+
env:
57+
HEAD_STATS_PATH: ./head-stats/webpack-stats.json
58+
BASE_STATS_PATH: ./base-stats/webpack-stats.json
59+
with:
60+
script: |
61+
const { compare } = await import('${{github.workspace}}/apps/site/scripts/compare-size/index.mjs')
62+
await compare({core})
63+
64+
- name: Add Comment to PR
65+
uses: thollander/actions-comment-pull-request@e2c37e53a7d2227b61585343765f73a9ca57eda9 # v3.0.0
66+
with:
67+
comment-tag: 'compare_bundle_size'
68+
message: ${{ steps.compare-bundle-size.outputs.comment }}

.github/workflows/sync-orama.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ jobs:
4343
run: node --run sync-orama
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
ORAMA_INDEX_ID: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_INDEX_ID || secrets.ORAMA_INDEX_ID }}
47-
ORAMA_SECRET_KEY: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_SECRET_KEY || secrets.ORAMA_SECRET_KEY }}
46+
NEW_ORAMA_PROJECT_ID: ${{ github.event_name == 'push' && secrets.NEW_ORAMA_PRODUCTION_PROJECT_ID || secrets.NEW_ORAMA_PROJECT_ID }}
47+
NEW_ORAMA_PRIVATE_API_KEY: ${{ github.event_name == 'push' && secrets.NEW_ORAMA_PRODUCTION_PRIVATE_API_KEY || secrets.NEW_ORAMA_PRIVATE_API_KEY }}
48+
NEW_ORAMA_DATASOURCE_ID: ${{ github.event_name == 'push' && secrets.NEW_ORAMA_PRODUCTION_DATASOURCE_ID || secrets.NEW_ORAMA_DATASOURCE_ID }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,6 @@ playwright-report
4949

5050
## MacOS Ignored Files
5151
.DS_Store
52+
53+
## Other Files
5254
.env

GOVERNANCE.md

Lines changed: 0 additions & 90 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ These are maintained in different repositories and we urge users to open **issue
9494

9595
[Collaborator Guide][]
9696

97+
[Governance Document][]
98+
9799
[Figma Design][]
98100

99101
[Content vs Code][]
@@ -121,5 +123,6 @@ These are maintained in different repositories and we urge users to open **issue
121123
[content vs code]: https://github.com/nodejs/nodejs.org/blob/main/docs/content-vs-code.md
122124
[dependency pinning]: https://github.com/nodejs/nodejs.org/blob/main/docs/dependency-pinning.md
123125
[collaborator guide]: https://github.com/nodejs/nodejs.org/blob/main/docs/collaborator-guide.md
126+
[governance document]: https://github.com/nodejs/web-team/blob/main/GOVERNANCE.md
124127
[figma design]: https://www.figma.com/file/a10cjjw3MzvRQMPT9FP3xz
125128
[translation guidelines]: https://github.com/nodejs/nodejs.org/blob/main/docs/translation.md

apps/site/app/[locale]/feed/[feed]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NextResponse } from 'next/server';
22

3-
import provideWebsiteFeeds from '#site/next-data/providers/websiteFeeds';
43
import { siteConfig } from '#site/next.json.mjs';
54
import { defaultLocale } from '#site/next.locales.mjs';
5+
import { getFeeds } from '#site/util/feeds';
66

77
type DynamicStaticPaths = { locale: string; feed: string };
88
type StaticParams = { params: Promise<DynamicStaticPaths> };
@@ -14,7 +14,7 @@ export const GET = async (_: Request, props: StaticParams) => {
1414
const params = await props.params;
1515

1616
// Generate the Feed for the given feed type (blog, releases, etc)
17-
const websiteFeed = provideWebsiteFeeds(params.feed);
17+
const websiteFeed = getFeeds(params.feed);
1818

1919
return new NextResponse(websiteFeed, {
2020
headers: { 'Content-Type': 'application/xml' },

apps/site/components/Blog/BlogPostCard/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
}
77

88
.subtitle {
9-
@apply mb-2
10-
mt-6
9+
@apply mt-6
10+
mb-2
1111
inline-block
1212
text-xs
1313
font-semibold

apps/site/components/Blog/BlogPostCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type BlogPostCardProps = {
1515
category: BlogCategory;
1616
description?: string;
1717
authors?: Array<string>;
18-
date?: Date;
18+
date?: string | Date;
1919
slug?: string;
2020
};
2121

0 commit comments

Comments
 (0)