Skip to content

Commit 15a5269

Browse files
authored
Merge branch 'minor' into feat/tsx-generics
2 parents 236be53 + 77d5e88 commit 15a5269

File tree

233 files changed

+5699
-4459
lines changed

Some content is hidden

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

233 files changed

+5699
-4459
lines changed

.github/commit-convention.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
4444

4545
### Full Message Format
4646

47-
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
47+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
4848

4949
```
5050
<type>(<scope>): <subject>
@@ -74,9 +74,9 @@ The scope could be anything specifying the place of the commit change. For examp
7474

7575
The subject contains a succinct description of the change:
7676

77-
* use the imperative, present tense: "change" not "changed" nor "changes"
78-
* don't capitalize the first letter
79-
* no dot (.) at the end
77+
- use the imperative, present tense: "change" not "changed" nor "changes"
78+
- don't capitalize the first letter
79+
- no dot (.) at the end
8080

8181
### Body
8282

.github/contributing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Hi! I'm really excited that you are interested in contributing to Vue.js. Before
3535

3636
Another aspect of it is that large scale stylistic changes result in massive diffs that touch multiple files, adding noise to the git history and makes tracing behavior changes across commits more cumbersome.
3737

38-
3938
### Pull Request Checklist
4039

4140
- Vue core has two primary work branches: `main` and `minor`.

.github/maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Depending on the type of the PR, different considerations need to be taken into
8080
- Make sure it doesn't accidentally cause dev-only or compiler-only code branches to be included in the runtime build. Notable case is that some functions in @vue/shared are compiler-only and should not be used in runtime code, e.g. `isHTMLTag` and `isSVGTag`.
8181

8282
- Performance
83+
8384
- Be careful about code changes in "hot paths", in particular the Virtual DOM renderer (`runtime-core/src/renderer.ts`) and component instantiation code.
8485

8586
- Potential Breakage

.github/workflows/canary-minor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828

2929
- run: pnpm install
3030

31-
- run: pnpm release --canary --tag minor
31+
- run: pnpm release --canary --publish --tag minor
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/canary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626

2727
- run: pnpm install
2828

29-
- run: pnpm release --canary
29+
- run: pnpm release --canary --publish
3030
env:
3131
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

Lines changed: 3 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -8,136 +8,7 @@ on:
88
- main
99
- minor
1010

11-
permissions:
12-
contents: read # to fetch code (actions/checkout)
13-
1411
jobs:
15-
unit-test:
16-
runs-on: ubuntu-latest
17-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
18-
env:
19-
PUPPETEER_SKIP_DOWNLOAD: 'true'
20-
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v4.0.0
25-
26-
- name: Install Node.js
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version-file: '.node-version'
30-
cache: 'pnpm'
31-
32-
- run: pnpm install
33-
34-
- name: Run unit tests
35-
run: pnpm run test-unit
36-
37-
unit-test-windows:
38-
runs-on: windows-latest
39-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
40-
env:
41-
PUPPETEER_SKIP_DOWNLOAD: 'true'
42-
steps:
43-
- uses: actions/checkout@v4
44-
45-
- name: Install pnpm
46-
uses: pnpm/action-setup@v4.0.0
47-
48-
- name: Install Node.js
49-
uses: actions/setup-node@v4
50-
with:
51-
node-version-file: '.node-version'
52-
cache: 'pnpm'
53-
54-
- run: pnpm install
55-
56-
- name: Run compiler unit tests
57-
run: pnpm run test-unit compiler
58-
59-
- name: Run ssr unit tests
60-
run: pnpm run test-unit server-renderer
61-
62-
e2e-test:
63-
runs-on: ubuntu-latest
64-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
65-
steps:
66-
- uses: actions/checkout@v4
67-
68-
- name: Setup cache for Chromium binary
69-
uses: actions/cache@v4
70-
with:
71-
path: ~/.cache/puppeteer
72-
key: chromium-${{ hashFiles('pnpm-lock.yaml') }}
73-
74-
- name: Install pnpm
75-
uses: pnpm/action-setup@v4.0.0
76-
77-
- name: Install Node.js
78-
uses: actions/setup-node@v4
79-
with:
80-
node-version-file: '.node-version'
81-
cache: 'pnpm'
82-
83-
- run: pnpm install
84-
- run: node node_modules/puppeteer/install.mjs
85-
86-
- name: Run e2e tests
87-
run: pnpm run test-e2e
88-
89-
- name: verify treeshaking
90-
run: node scripts/verify-treeshaking.js
91-
92-
lint-and-test-dts:
93-
runs-on: ubuntu-latest
94-
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
95-
env:
96-
PUPPETEER_SKIP_DOWNLOAD: 'true'
97-
steps:
98-
- uses: actions/checkout@v4
99-
100-
- name: Install pnpm
101-
uses: pnpm/action-setup@v4.0.0
102-
103-
- name: Install Node.js
104-
uses: actions/setup-node@v4
105-
with:
106-
node-version-file: '.node-version'
107-
cache: 'pnpm'
108-
109-
- run: pnpm install
110-
111-
- name: Run eslint
112-
run: pnpm run lint
113-
114-
- name: Run prettier
115-
run: pnpm run format-check
116-
117-
- name: Run type declaration tests
118-
run: pnpm run test-dts
119-
120-
# benchmarks:
121-
# runs-on: ubuntu-latest
122-
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
123-
# env:
124-
# PUPPETEER_SKIP_DOWNLOAD: 'true'
125-
# steps:
126-
# - uses: actions/checkout@v4
127-
128-
# - name: Install pnpm
129-
# uses: pnpm/action-setup@v3.0.0
130-
131-
# - name: Install Node.js
132-
# uses: actions/setup-node@v4
133-
# with:
134-
# node-version-file: '.node-version'
135-
# cache: 'pnpm'
136-
137-
# - run: pnpm install
138-
139-
# - name: Run benchmarks
140-
# uses: CodSpeedHQ/action@v2
141-
# with:
142-
# run: pnpm vitest bench --run
143-
# token: ${{ secrets.CODSPEED_TOKEN }}
12+
test:
13+
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
14+
uses: ./.github/workflows/test.yml

.github/workflows/release-tag.yml

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

.github/workflows/release.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+
8+
jobs:
9+
test:
10+
uses: ./.github/workflows/test.yml
11+
12+
release:
13+
# prevents this action from running on forks
14+
if: github.repository == 'vuejs/core'
15+
needs: [test]
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
id-token: write
20+
# Use Release environment for deployment protection
21+
environment: Release
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Install pnpm
27+
uses: pnpm/action-setup@v4
28+
29+
- name: Install Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version-file: '.node-version'
33+
registry-url: 'https://registry.npmjs.org'
34+
cache: 'pnpm'
35+
36+
- name: Install deps
37+
run: pnpm install
38+
39+
- name: Build and publish
40+
id: publish
41+
run: |
42+
pnpm release --publishOnly
43+
env:
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
46+
- name: Create GitHub release
47+
id: release_tag
48+
uses: yyx990803/release-tag@master
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
with:
52+
tag_name: ${{ github.ref }}
53+
body: |
54+
For stable releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/main/CHANGELOG.md) for details.
55+
For pre-releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/minor/CHANGELOG.md) of the `minor` branch.

.github/workflows/size-data.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- minor
78
pull_request:
89
branches:
910
- main
@@ -36,18 +37,14 @@ jobs:
3637

3738
- run: pnpm run size
3839

40+
- name: Save PR number & base branch
41+
if: ${{github.event_name == 'pull_request'}}
42+
run: |
43+
echo ${{ github.event.number }} > ./temp/size/number.txt
44+
echo ${{ github.base_ref }} > ./temp/size/base.txt
45+
3946
- name: Upload Size Data
4047
uses: actions/upload-artifact@v4
4148
with:
4249
name: size-data
4350
path: temp/size
44-
45-
- name: Save PR number
46-
if: ${{github.event_name == 'pull_request'}}
47-
run: echo ${{ github.event.number }} > ./pr.txt
48-
49-
- uses: actions/upload-artifact@v4
50-
if: ${{github.event_name == 'pull_request'}}
51-
with:
52-
name: pr-number
53-
path: pr.txt

.github/workflows/size-report.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,25 @@ jobs:
3535
- name: Install dependencies
3636
run: pnpm install
3737

38-
- name: Download PR number
38+
- name: Download Size Data
3939
uses: dawidd6/action-download-artifact@v6
4040
with:
41-
name: pr-number
41+
name: size-data
4242
run_id: ${{ github.event.workflow_run.id }}
43-
path: /tmp/pr-number
43+
path: temp/size
4444

4545
- name: Read PR Number
4646
id: pr-number
47-
uses: juliangruber/read-file-action@v1
48-
with:
49-
path: /tmp/pr-number/pr.txt
47+
run: echo "number=(cat ./temp/size/number.txt)" >> $GITHUB_OUTPUT
5048

51-
- name: Download Size Data
52-
uses: dawidd6/action-download-artifact@v6
53-
with:
54-
name: size-data
55-
run_id: ${{ github.event.workflow_run.id }}
56-
path: temp/size
49+
- name: Read base branch
50+
id: pr-base
51+
run: echo "base=(cat ./temp/size/base.txt)" >> $GITHUB_OUTPUT
5752

5853
- name: Download Previous Size Data
5954
uses: dawidd6/action-download-artifact@v6
6055
with:
61-
branch: main
56+
branch: ${{ steps.pr-base.outputs.base }}
6257
workflow: size-data.yml
6358
event: push
6459
name: size-data
@@ -78,7 +73,7 @@ jobs:
7873
uses: actions-cool/maintain-one-comment@v3
7974
with:
8075
token: ${{ secrets.GITHUB_TOKEN }}
81-
number: ${{ steps.pr-number.outputs.content }}
76+
number: ${{ steps.pr-number.outputs.number }}
8277
body: |
8378
${{ steps.size-report.outputs.content }}
8479
<!-- VUE_CORE_SIZE -->

0 commit comments

Comments
 (0)