Skip to content

Commit 3a209c7

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents f1d7ac0 + 1338a29 commit 3a209c7

File tree

1,164 files changed

+51926
-45592
lines changed

Some content is hidden

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

1,164 files changed

+51926
-45592
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# Infrastructure
55
.github @nodejs/web-infra
66
.husky @nodejs/web-infra
7+
.nvmrc @nodejs/web-infra
78
codecov.yml @nodejs/web-infra
9+
packages/ui-components/scripts/publish.mjs @nodejs/web-infra
810

911
# Dependencies
1012
pnpm-workspace.yaml @nodejs/nodejs-website @nodejs/web-infra

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ updates:
88
- 'github_actions:pull-request'
99
commit-message:
1010
prefix: meta
11+
cooldown:
12+
default-days: 3
1113
open-pull-requests-limit: 10
1214

1315
- package-ecosystem: npm
@@ -19,6 +21,8 @@ updates:
1921
- 'github_actions:pull-request'
2022
commit-message:
2123
prefix: meta
24+
cooldown:
25+
default-days: 3
2226
groups:
2327
lint:
2428
patterns:

.github/workflows/build.yml

Lines changed: 7 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ on:
1010
push:
1111
branches:
1212
- main
13-
pull_request_target:
13+
pull_request:
1414
branches:
1515
- main
16-
types:
17-
- labeled
1816
merge_group:
19-
workflow_dispatch:
2017

2118
defaults:
2219
run:
@@ -33,11 +30,6 @@ env:
3330

3431
jobs:
3532
build:
36-
# This Job should run either on non-`pull_request_target` events,
37-
# or `pull_request_target` event with a `labeled` action with a label named `github_actions:pull-request`
38-
# since we want to run Website Builds on all these occasions. As this allows us to be certain the that builds are passing
39-
if: github.event_name != 'pull_request_target' || github.event.label.name == 'github_actions:pull-request'
40-
4133
name: Build on ${{ matrix.os }}
4234
runs-on: ${{ matrix.os }}
4335

@@ -48,7 +40,7 @@ jobs:
4840

4941
steps:
5042
- name: Harden Runner
51-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
43+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
5244
with:
5345
egress-policy: audit
5446

@@ -59,18 +51,9 @@ jobs:
5951
run: echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%"
6052

6153
- name: Git Checkout
62-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63-
with:
64-
# Provides the Pull Request commit SHA or the GitHub merge group ref
65-
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
66-
# We only need to fetch the last commit from the head_ref
67-
# since we're not using the `--filter` operation from turborepo
68-
# We don't use the `--filter` as we always want to force builds regardless of having changes or not
69-
# this ensures that our bundle analysis script always runs and that we always ensure next.js is building
70-
# regardless of having code changes or not
71-
fetch-depth: 1
54+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7255

73-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
56+
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
7457
with:
7558
path: ${{ github.workspace }}/apps/site/.next/cache
7659
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
@@ -90,59 +73,13 @@ jobs:
9073
# We only want to install required production packages
9174
run: pnpm install --prod --frozen-lockfile
9275

93-
- name: Build Next.js (ISR)
76+
- name: Build Next.js
9477
# We want a ISR build on CI to ensure that regular Next.js builds work as expected.
9578
run: node_modules/.bin/turbo build ${{ env.TURBO_ARGS }}
9679
env:
9780
# We want to ensure we have enough RAM allocated to the Node.js process
9881
# this should be a last resort in case by any chances the build memory gets too high
9982
# but in general this should never happen
10083
NODE_OPTIONS: '--max_old_space_size=4096'
101-
# Used for API requests that require GitHub API scopes
102-
NEXT_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
103-
104-
- name: Build Next.js (Static All Locales)
105-
# We only run full static builds within Pull Requests. This step is also used to export
106-
# static output in all languages, and it only works on `push` events.
107-
if: github.event_name == 'push'
108-
run: node_modules/.bin/turbo deploy ${{ env.TURBO_ARGS }}
109-
env:
110-
# We want to ensure we have enough RAM allocated to the Node.js process
111-
# this should be a last resort in case by any chances the build memory gets too high
112-
# but in general this should never happen
113-
NODE_OPTIONS: '--max_old_space_size=4096'
114-
# Used for API requests that require GitHub API scopes
115-
NEXT_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
116-
# We want to ensure that static exports for all locales are triggered only on `push` events to save resources
117-
# and time.
118-
NEXT_PUBLIC_STATIC_EXPORT_LOCALE: true
119-
120-
- name: Build Next.js (Static Default Locale)
121-
# We want to generate static output in the default language within Pull Requests
122-
# in order to reduce source wastages and build times.
123-
# Note that we skip full static builds on Crowdin-based Pull Requests as these PRs should only contain translation changes
124-
if: |
125-
(github.event_name == 'pull_request_target' &&
126-
github.event.pull_request.head.ref != 'chore/crowdin')
127-
run: node_modules/.bin/turbo deploy ${{ env.TURBO_ARGS }}
128-
env:
129-
# We want to ensure we have enough RAM allocated to the Node.js process
130-
# this should be a last resort in case by any chances the build memory gets too high
131-
# but in general this should never happen
132-
NODE_OPTIONS: '--max_old_space_size=4096'
133-
# Used for API requests that require GitHub API scopes
134-
NEXT_GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
135-
# We want to ensure that static exports for all locales do not occur on `pull_request_target` events
136-
NEXT_PUBLIC_STATIC_EXPORT_LOCALE: false
137-
138-
- name: Sync Orama Cloud
139-
# We only want to sync the Orama Cloud production indexes on `push` events.
140-
# We also want to sync the Orama Cloud preview (deployment) indexes on `pull_request_target` events (or manual triggers).
141-
# We also want to ensure that the sync only happens on the `ubuntu-latest` runner to avoid duplicate syncs
142-
# or Windows-based path issues.
143-
env:
144-
ORAMA_INDEX_ID: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_INDEX_ID || secrets.ORAMA_INDEX_ID }}
145-
ORAMA_SECRET_KEY: ${{ github.event_name == 'push' && secrets.ORAMA_PRODUCTION_SECRET_KEY || secrets.ORAMA_SECRET_KEY }}
146-
if: matrix.os == 'ubuntu-latest' && github.event_name != 'merge_group'
147-
working-directory: apps/site
148-
run: node --run sync-orama
84+
# We want to ensure that static exports for all locales do not occur on `pull_request` events
85+
NEXT_PUBLIC_STATIC_EXPORT_LOCALE: ${{ github.event_name == 'push' }}

.github/workflows/chromatic.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454

5555
steps:
5656
- name: Harden Runner
57-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
57+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
5858
with:
5959
egress-policy: audit
6060

6161
- name: Git Checkout
62-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6363
with:
6464
# Provides the Pull Request commit SHA or the GitHub merge group ref
6565
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
@@ -82,10 +82,8 @@ jobs:
8282

8383
- name: Start Visual Regression Tests (Chromatic)
8484
# This assigns the Environment Deployment for Storybook
85-
# This action must be manually updated to the latest commit from
86-
# https://github.com/chromaui/action
8785
id: chromatic-deploy
88-
uses: chromaui/action@b5848056bb67ce5f1cccca8e62a37cbd9dd42871 # v13.0.1
86+
uses: chromaui/action@d0795df816d05c4a89c80295303970fddd247cce # v13.1.4
8987
with:
9088
workingDir: packages/ui-components
9189
buildScriptName: storybook:build

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
44+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4545
with:
4646
egress-policy: audit
4747

4848
- name: Checkout repository
49-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050

5151
# Initializes the CodeQL tools for scanning.
5252
- name: Initialize CodeQL

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Harden Runner
29-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
29+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
3030
with:
3131
egress-policy: audit
3232

3333
- name: Git Checkout
34-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3535

3636
- name: Review Dependencies
37-
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
37+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3

.github/workflows/find-inactive-collaborators.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717

1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
20+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
2121
with:
2222
egress-policy: audit
2323

24-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2525

2626
- name: Report inactive collaborators
2727
id: inactive

.github/workflows/lighthouse.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ jobs:
6565

6666
steps:
6767
- name: Harden Runner
68-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
68+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
6969
with:
7070
egress-policy: audit
7171

7272
- name: Git Checkout
73-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7474
with:
7575
# Provides the Pull Request commit SHA or the GitHub merge group ref
7676
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
@@ -97,6 +97,7 @@ jobs:
9797
${{ needs.get-vercel-preview.outputs.url }}/en/about
9898
${{ needs.get-vercel-preview.outputs.url }}/en/about/previous-releases
9999
${{ needs.get-vercel-preview.outputs.url }}/en/download
100+
${{ needs.get-vercel-preview.outputs.url }}/en/download/archive/current
100101
${{ needs.get-vercel-preview.outputs.url }}/en/blog
101102
uploadArtifacts: true # save results as a action artifacts
102103
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

.github/workflows/lint-and-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ jobs:
4343

4444
steps:
4545
- name: Harden Runner
46-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
46+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
4747
with:
4848
egress-policy: audit
4949

5050
- name: Git Checkout
51-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5252

5353
- name: Restore Lint Cache
54-
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
54+
uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
5555
with:
5656
path: |
5757
.turbo/cache
@@ -101,7 +101,7 @@ jobs:
101101
(github.event_name == 'pull_request' &&
102102
startsWith(github.event.pull_request.head.ref, 'dependabot/') == false &&
103103
github.event.pull_request.head.ref != 'chore/crowdin')
104-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
104+
uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
105105
with:
106106
path: |
107107
.turbo/cache
@@ -116,12 +116,12 @@ jobs:
116116

117117
steps:
118118
- name: Harden Runner
119-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
119+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
120120
with:
121121
egress-policy: audit
122122

123123
- name: Git Checkout
124-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
125125

126126
- name: Set up pnpm
127127
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
@@ -143,7 +143,7 @@ jobs:
143143

144144
- name: Upload test coverage to Codecov
145145
if: ${{ !cancelled() && github.event_name != 'merge_group' }}
146-
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
146+
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
147147
with:
148148
files: ./apps/site/lcov.info,./packages/*/lcov.info
149149

.github/workflows/playwright-cloudflare-open-next.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Harden Runner
32-
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
32+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
3333
with:
3434
egress-policy: audit
3535

3636
- name: Git Checkout
37-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838
with:
3939
fetch-depth: 2
4040

@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Cache Playwright browsers
6060
id: playwright-cache
61-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
61+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
6262
with:
6363
path: ~/.cache/ms-playwright
6464
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}

0 commit comments

Comments
 (0)