Skip to content

Commit e73396f

Browse files
committed
Merge branch 'main' into fix-hash-link-to-new-page-focus
2 parents b4cf822 + 435984b commit e73396f

File tree

616 files changed

+8417
-32334
lines changed

Some content is hidden

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

616 files changed

+8417
-32334
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"access": "public",
77
"baseBranch": "main",
88
"bumpVersionsWithWorkspaceProtocolOnly": true,
9-
"ignore": ["!(@sveltejs/*|create-svelte|svelte-migrate)"]
9+
"ignore": ["!(@sveltejs/*|create-svelte)"]
1010
}

.changeset/twelve-singers-bake.md

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

.eslintrc.json

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

.github/workflows/audit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ permissions:
1313

1414
jobs:
1515
Audit:
16+
# prevents this action from running on forks
17+
if: github.repository == 'sveltejs/kit'
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4
1921
- uses: pnpm/[email protected]
2022
- uses: actions/setup-node@v4
2123
with:
22-
node-version: '20.x'
24+
node-version: '22.x'
2325
cache: pnpm
2426
- run: pnpm install --frozen-lockfile
2527
# check prod dependencies as these would affect users

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,25 @@ permissions:
1919
contents: read # to fetch code (actions/checkout)
2020

2121
jobs:
22+
pkg-pr-new:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: pnpm/[email protected]
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 22
30+
cache: pnpm
31+
- run: pnpm install --frozen-lockfile
32+
- run: pnpx pkg-pr-new publish --comment=off ./packages/kit
2233
lint-all:
2334
runs-on: ubuntu-latest
2435
steps:
2536
- uses: actions/checkout@v4
2637
- uses: pnpm/[email protected]
2738
- uses: actions/setup-node@v4
2839
with:
29-
node-version: '18.x'
40+
node-version: 22
3041
cache: pnpm
3142
- run: pnpm install --frozen-lockfile
3243
- run: pnpm run lint
@@ -45,6 +56,9 @@ jobs:
4556
- node-version: 20
4657
os: ubuntu-latest
4758
e2e-browser: 'chromium'
59+
- node-version: 22
60+
os: ubuntu-latest
61+
e2e-browser: 'chromium'
4862
env:
4963
KIT_E2E_BROWSER: ${{matrix.e2e-browser}}
5064
steps:
@@ -59,6 +73,8 @@ jobs:
5973
- run: pnpm playwright install ${{ matrix.e2e-browser }}
6074
- run: pnpm run sync-all
6175
- run: pnpm test:kit
76+
- name: Print flaky test report
77+
run: node scripts/print-flaky-test-report.js
6278
- name: Archive test results
6379
if: failure()
6480
shell: bash
@@ -115,6 +131,8 @@ jobs:
115131
- run: pnpm playwright install ${{ matrix.e2e-browser }}
116132
- run: pnpm run sync-all
117133
- run: pnpm test:cross-platform:${{ matrix.mode }}
134+
- name: Print flaky test report
135+
run: node scripts/print-flaky-test-report.js
118136
- name: Archive test results
119137
if: failure()
120138
shell: bash
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md
2+
name: Docs preview create request
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- main
8+
9+
jobs:
10+
dispatch:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Repository Dispatch
14+
uses: peter-evans/repository-dispatch@v3
15+
with:
16+
token: ${{ secrets.SYNC_REQUEST_TOKEN }}
17+
repository: sveltejs/svelte.dev
18+
event-type: docs-preview-create
19+
client-payload: |-
20+
{
21+
"package": "kit",
22+
"repo": "${{ github.repository }}",
23+
"owner": "${{ github.event.pull_request.head.repo.owner.login }}",
24+
"branch": "${{ github.event.pull_request.head.ref }}",
25+
"pr": ${{ github.event.pull_request.number }}
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md
2+
name: Docs preview delete request
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- main
8+
types: [closed]
9+
10+
jobs:
11+
dispatch:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Repository Dispatch
15+
uses: peter-evans/repository-dispatch@v3
16+
with:
17+
token: ${{ secrets.SYNC_REQUEST_TOKEN }}
18+
repository: sveltejs/svelte.dev
19+
event-type: docs-preview-delete
20+
client-payload: |-
21+
{
22+
"package": "kit",
23+
"repo": "${{ github.repository }}",
24+
"owner": "${{ github.event.pull_request.head.repo.owner.login }}",
25+
"branch": "${{ github.event.pull_request.head.ref }}",
26+
"pr": ${{ github.event.pull_request.number }}
27+
}

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
if: github.repository == 'sveltejs/kit'
1313
permissions:
1414
contents: write # to create release (changesets/action)
15+
id-token: write # OpenID Connect token needed for provenance
1516
pull-requests: write # to create pull request (changesets/action)
1617
name: Release
1718
runs-on: ubuntu-latest
@@ -25,7 +26,7 @@ jobs:
2526
- name: Setup Node.js
2627
uses: actions/setup-node@v4
2728
with:
28-
node-version: 16.x
29+
node-version: 22.x
2930
cache: pnpm
3031

3132
- run: pnpm install --frozen-lockfile
@@ -39,8 +40,8 @@ jobs:
3940
version: pnpm changeset:version
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_CONFIG_PROVENANCE: true
4244
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
UPDATE_TEMPLATE_SSH_KEY: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }}
4445

4546
# TODO alert discord
4647
# - name: Send a Slack notification if a publish happens

.github/workflows/sync-request.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# https://github.com/sveltejs/svelte.dev/blob/main/apps/svelte.dev/scripts/sync-docs/README.md
2+
name: Sync request
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
dispatch:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Repository Dispatch
14+
uses: peter-evans/repository-dispatch@v3
15+
with:
16+
token: ${{ secrets.SYNC_REQUEST_TOKEN }}
17+
repository: sveltejs/svelte.dev
18+
event-type: sync-request
19+
client-payload: |-
20+
{
21+
"package": "kit"
22+
}

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"packages/package/test/fixtures/**/expected/**/*",
2828
"packages/package/test/watch/expected/**/*",
2929
"packages/package/test/watch/package/**/*",
30-
"packages/kit/src/core/postbuild/fixtures/**/*",
31-
"packages/migrate/migrations/routes/*/samples.md"
30+
"packages/kit/src/core/postbuild/fixtures/**/*"
3231
],
3332
"options": {
3433
"requirePragma": true

0 commit comments

Comments
 (0)