Skip to content

Commit 594cb14

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 30583b9 + 9a36f2a commit 594cb14

File tree

298 files changed

+5798
-2782
lines changed

Some content is hidden

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

298 files changed

+5798
-2782
lines changed

.github/contributing.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Tests that test against source code are grouped under `nr test-unit`, while test
236236

237237
### `nr test-dts`
238238

239-
Runs `nr build-dts` first, then verify the type tests in `packages/dts-test` are working correctly against the actual built type declarations.
239+
Runs `nr build-dts` first, then verify the type tests in `packages-private/dts-test` are working correctly against the actual built type declarations.
240240

241241
## Project Structure
242242

@@ -335,7 +335,7 @@ Test coverage is continuously deployed at https://coverage.vuejs.org. PRs that i
335335

336336
### Testing Type Definition Correctness
337337

338-
Type tests are located in the `packages/dts-test` directory. To run the dts tests, run `nr test-dts`. Note that the type test requires all relevant `*.d.ts` files to be built first (and the script does it for you). Once the `d.ts` files are built and up-to-date, the tests can be re-run by running `nr test-dts-only`.
338+
Type tests are located in the `packages-private/dts-test` directory. To run the dts tests, run `nr test-dts`. Note that the type test requires all relevant `*.d.ts` files to be built first (and the script does it for you). Once the `d.ts` files are built and up-to-date, the tests can be re-run by running `nr test-dts-only`.
339339

340340
## Financial Contribution
341341

.github/renovate.json5

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
{
1818
groupName: 'playground',
1919
matchFileNames: [
20-
'packages/sfc-playground/package.json',
21-
'packages/template-explorer/package.json',
20+
'packages-private/sfc-playground/package.json',
21+
'packages-private/template-explorer/package.json',
2222
],
2323
},
2424
{
@@ -54,5 +54,13 @@
5454
// pinned
5555
// https://github.com/vuejs/core/commit/a012e39b373f1b6918e5c89856e8f902e1bfa14d
5656
'@rollup/plugin-replace',
57+
58+
// pinned
59+
// only used in example for e2e tests
60+
'marked',
61+
62+
// pinned, 5.0+ has exports issues
63+
// https://github.com/vuejs/core/issues/11603
64+
'entities',
5765
],
5866
}

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- '**'
6+
tags:
7+
- '!**'
68
pull_request:
79
branches:
810
- main
@@ -12,3 +14,29 @@ jobs:
1214
test:
1315
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
1416
uses: ./.github/workflows/test.yml
17+
18+
continuous-release:
19+
if: github.repository == 'vuejs/core'
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
28+
- name: Install Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version-file: '.node-version'
32+
registry-url: 'https://registry.npmjs.org'
33+
cache: 'pnpm'
34+
35+
- name: Install deps
36+
run: pnpm install
37+
38+
- name: Build
39+
run: pnpm build --withTypes
40+
41+
- name: Release
42+
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Auto close issues with "can't reproduce" label
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
close-issues:
12+
if: github.repository == 'vuejs/core'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: can't reproduce
16+
uses: actions-cool/issues-helper@v3
17+
with:
18+
actions: 'close-issues'
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
labels: "can't reproduce"
21+
inactive-day: 3

.github/workflows/ecosystem-ci-trigger.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
1111
steps:
12-
- uses: actions/github-script@v7
12+
- name: Check user permission
13+
uses: actions/github-script@v7
1314
with:
1415
script: |
1516
const user = context.payload.sender.login
@@ -43,7 +44,8 @@ jobs:
4344
})
4445
throw new Error('not allowed')
4546
}
46-
- uses: actions/github-script@v7
47+
- name: Get PR info
48+
uses: actions/github-script@v7
4749
id: get-pr-data
4850
with:
4951
script: |
@@ -56,9 +58,11 @@ jobs:
5658
return {
5759
num: context.issue.number,
5860
branchName: pr.head.ref,
59-
repo: pr.head.repo.full_name
61+
repo: pr.head.repo.full_name,
62+
commit: pr.head.sha
6063
}
61-
- uses: actions/github-script@v7
64+
- name: Trigger run
65+
uses: actions/github-script@v7
6266
id: trigger
6367
env:
6468
COMMENT: ${{ github.event.comment.body }}
@@ -80,6 +84,7 @@ jobs:
8084
prNumber: '' + prData.num,
8185
branchName: prData.branchName,
8286
repo: prData.repo,
83-
suite: suite === '' ? '-' : suite
87+
suite: suite === '' ? '-' : suite,
88+
commit: prData.commit
8489
}
8590
})

.github/workflows/size-data.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818

1919
jobs:
2020
upload:
21+
if: github.repository == 'vuejs/core'
2122
runs-on: ubuntu-latest
2223

2324
steps:
@@ -48,22 +49,14 @@ jobs:
4849
path: temp/size-prev
4950
if_no_artifact_found: warn
5051

51-
- name: Upload Size Data
52-
uses: actions/upload-artifact@v4
53-
with:
54-
name: size-data
55-
path: temp/size
56-
5752
- name: Save PR number & base branch
5853
if: ${{github.event_name == 'pull_request'}}
5954
run: |
60-
echo ${{ github.event.number }} > ./number.txt
61-
echo ${{ github.base_ref }} > ./base.txt
55+
echo ${{ github.event.number }} > ./temp/size/number.txt
56+
echo ${{ github.base_ref }} > ./temp/size/base.txt
6257
63-
- uses: actions/upload-artifact@v4
64-
if: ${{github.event_name == 'pull_request'}}
58+
- name: Upload Size Data
59+
uses: actions/upload-artifact@v4
6560
with:
66-
name: pr-info
67-
path: |
68-
number.txt
69-
base.txt
61+
name: size-data
62+
path: temp/size

.github/workflows/size-report.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
size-report:
1919
runs-on: ubuntu-latest
2020
if: >
21+
github.repository == 'vuejs/core' &&
2122
github.event.workflow_run.event == 'pull_request' &&
2223
github.event.workflow_run.conclusion == 'success'
2324
steps:
@@ -35,31 +36,24 @@ jobs:
3536
- name: Install dependencies
3637
run: pnpm install
3738

38-
- name: Download PR info
39+
- name: Download Size Data
3940
uses: dawidd6/action-download-artifact@v6
4041
with:
41-
name: pr-info
42+
name: size-data
4243
run_id: ${{ github.event.workflow_run.id }}
43-
path: /tmp/pr-info
44+
path: temp/size
4445

4546
- name: Read PR Number
4647
id: pr-number
4748
uses: juliangruber/read-file-action@v1
4849
with:
49-
path: /tmp/pr-info/number.txt
50+
path: temp/size/number.txt
5051

51-
- name: Read PR base branch
52+
- name: Read base branch
5253
id: pr-base
5354
uses: juliangruber/read-file-action@v1
5455
with:
55-
path: /tmp/pr-info/base.txt
56-
57-
- name: Download Size Data
58-
uses: dawidd6/action-download-artifact@v6
59-
with:
60-
name: size-data
61-
run_id: ${{ github.event.workflow_run.id }}
62-
path: temp/size
56+
path: temp/size/base.txt
6357

6458
- name: Download Previous Size Data
6559
uses: dawidd6/action-download-artifact@v6
@@ -72,7 +66,7 @@ jobs:
7266
if_no_artifact_found: warn
7367

7468
- name: Prepare report
75-
run: pnpm tsx scripts/size-report.ts > size-report.md
69+
run: node scripts/size-report.js > size-report.md
7670

7771
- name: Read Size Report
7872
id: size-report

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["vitest.explorer"]
3+
}

0 commit comments

Comments
 (0)