Skip to content

Commit c135084

Browse files
Merge branch 'canary' into docs-ia-forms-guide
2 parents 804f135 + f6081d0 commit c135084

File tree

159 files changed

+4018
-1470
lines changed

Some content is hidden

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

159 files changed

+4018
-1470
lines changed

.changeset/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": ["@changesets/changelog-github", { "repo": "vercel/next.js" }],
44
"commit": false,
5-
"fixed": [],
5+
"fixed": [["next", "@next/swc"]],
66
"linked": [],
77
"access": "public",
88
"baseBranch": "canary",

.changeset/seven-seas-run.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"next": patch
3+
---
4+
5+
[TypeScript Plugin] Match method signature (`someFunc(): void`) type for client boundary warnings.

.changeset/tricky-planes-worry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"next": patch
3+
---
4+
5+
[dynamicIO] Avoid timeout errors with dynamic params in `"use cache"`

.github/workflows/build_and_deploy.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ env:
2020
# See https://doc.rust-lang.org/rustc/platform-support/apple-darwin.html#os-version for more details
2121
MACOSX_DEPLOYMENT_TARGET: 11.0
2222
# This will become "true" if the latest commit is
23-
# "Version Packages", set from check-is-release.js
23+
# "Version Packages" or "Version Pacakges (canary)"
24+
# set from scripts/check-is-release.js
2425
__NEW_RELEASE: 'false'
2526

2627
jobs:
@@ -49,7 +50,7 @@ jobs:
4950
run: |
5051
# TODO: Remove the new release check once the new release workflow is fully replaced.
5152
RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :)
52-
if [[ $RELEASE_CHECK =~ ^Version\ Packages$ ]];
53+
if [[ $RELEASE_CHECK =~ ^Version\ Packages(\ \(canary\))?$ ]];
5354
then
5455
echo "__NEW_RELEASE=true" >> $GITHUB_ENV
5556
elif [[ $RELEASE_CHECK = v* ]];
@@ -602,18 +603,26 @@ jobs:
602603

603604
# New release process
604605
- name: Publish to NPM
605-
id: publish-packages
606+
id: changesets
606607
if: ${{ env.__NEW_RELEASE == 'true' }}
607608
uses: changesets/action@v1
608609
with:
609610
publish: pnpm ci:publish
610611
env:
611612
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
612613
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
614+
RELEASE_TYPE: ${{ github.event.inputs.releaseType }}
615+
616+
# Add label to verify the PR is created from this workflow.
617+
- name: Add label to PR
618+
if: steps.changesets.outputs.pullRequestNumber
619+
run: 'gh pr edit ${{ steps.changesets.outputs.pullRequestNumber }} --add-label "created-by: CI"'
620+
env:
621+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
613622

614623
- name: Upload npm log artifact
624+
if: steps.changesets.outputs.published == 'true'
615625
uses: actions/upload-artifact@v4
616-
if: always()
617626
with:
618627
name: npm-publish-logs
619628
path: /home/runner/.npm/_logs/*
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Force Merge Canary Release PR
2+
3+
on: pull_request
4+
5+
permissions:
6+
# To bypass and merge PR
7+
pull-requests: write
8+
9+
jobs:
10+
force-merge-canary-release-pr:
11+
runs-on: ubuntu-latest
12+
# Validate the login, PR title, and the label to ensure the PR is
13+
# from the release PR and prevent spoofing.
14+
if: |
15+
github.event.pull_request.user.login == 'vercel-release-bot' &&
16+
github.event.pull_request.title == 'Version Packages (canary)' &&
17+
contains(github.event.pull_request.labels.*.name, 'created-by: CI')
18+
steps:
19+
- name: Bypass required status checks and merge PR
20+
run: gh pr merge --admin --squash "$PR_URL"
21+
env:
22+
PR_URL: ${{github.event.pull_request.html_url}}
23+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test_e2e_deploy_release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
types: [published]
77
# allow triggering manually as well
88
workflow_dispatch:
9+
inputs:
10+
nextVersion:
11+
description: canary or custom tarball URL
12+
default: canary
13+
type: string
914

1015
env:
1116
VERCEL_TEST_TEAM: vtest314-next-e2e-tests
@@ -54,7 +59,7 @@ jobs:
5459
matrix:
5560
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
5661
with:
57-
afterBuild: npm i -g vercel@latest && NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
62+
afterBuild: npm i -g vercel@latest && NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" NEXT_TEST_VERSION="${{ github.event.inputs.nextVersion || 'canary' }}" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
5863
skipNativeBuild: 'yes'
5964
skipNativeInstall: 'no'
6065
stepName: 'test-deploy-${{ matrix.group }}'

.github/workflows/trigger_release_new.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
name: Trigger Release (New)
22

33
on:
4+
# Run every day at 23:15 UTC
5+
# TODO: Disabled cron for now, but uncomment
6+
# once replaced the old release workflow.
7+
# schedule:
8+
# - cron: '15 23 * * *'
9+
# Run manually
410
workflow_dispatch:
511
inputs:
612
releaseType:
713
description: Release Type
814
required: true
915
type: choice
16+
# Cron job will run canary release
17+
default: canary
1018
options:
11-
# TODO: Follow up enable the case.
12-
# - canary
19+
- canary
1320
- stable
1421
# TODO: Follow up enable the case.
1522
# - release-candidate
@@ -26,6 +33,10 @@ env:
2633
TURBO_VERSION: 2.3.3
2734
NODE_LTS_VERSION: 20
2835

36+
permissions:
37+
# To create PR
38+
pull-requests: write
39+
2940
jobs:
3041
start:
3142
if: github.repository_owner == 'vercel'

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
// singleton modules should always use "*.external" instead of "*-instance"
6060
"packages/next/src/server/app-render/action-async-storage-instance.ts",
6161
"packages/next/src/server/app-render/after-task-async-storage-instance.ts",
62+
"packages/next/src/server/app-render/dynamic-access-async-storage-instance.ts",
6263
"packages/next/src/server/app-render/work-async-storage-instance.ts",
6364
"packages/next/src/server/app-render/work-unit-async-storage-instance.ts",
6465
"packages/next/src/client/components/segment-cache-impl/*"

0 commit comments

Comments
 (0)