-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-slots-level
- Loading branch information
Showing
289 changed files
with
7,453 additions
and
4,714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,109 +6,9 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
- minor | ||
|
||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run unit tests | ||
run: pnpm run test-unit | ||
|
||
lint-and-test-dts: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run eslint | ||
run: pnpm run lint | ||
|
||
- name: Run prettier | ||
run: pnpm run format-check | ||
|
||
- name: Run type declaration tests | ||
run: pnpm run test-dts | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [unit-test, lint-and-test-dts] | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build --withTypes | ||
|
||
- name: Publish | ||
run: pnpm dlx [email protected] publish './packages/*' --template './playground' --pnpm | ||
|
||
# benchmarks: | ||
# runs-on: ubuntu-latest | ||
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
# env: | ||
# PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - name: Install pnpm | ||
# uses: pnpm/[email protected] | ||
|
||
# - name: Install Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version-file: '.node-version' | ||
# cache: 'pnpm' | ||
|
||
# - run: pnpm install | ||
|
||
# - name: Run benchmarks | ||
# uses: CodSpeedHQ/action@v2 | ||
# with: | ||
# run: pnpm vitest bench --run | ||
# token: ${{ secrets.CODSPEED_TOKEN }} | ||
test: | ||
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }} | ||
uses: ./.github/workflows/test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/test.yml | ||
|
||
release: | ||
# prevents this action from running on forks | ||
if: github.repository == 'vuejs/core' | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
# Use Release environment for deployment protection | ||
environment: Release | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- name: Install deps | ||
run: pnpm install | ||
|
||
- name: Build and publish | ||
id: publish | ||
run: | | ||
pnpm release --publishOnly | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Create GitHub release | ||
id: release_tag | ||
uses: yyx990803/release-tag@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
body: | | ||
For stable releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/main/CHANGELOG.md) for details. | ||
For pre-releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/minor/CHANGELOG.md) of the `minor` branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: 'test' | ||
|
||
on: workflow_call | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
unit-test: | ||
runs-on: ubuntu-latest | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run unit tests | ||
run: pnpm run test-unit | ||
|
||
lint-and-test-dts: | ||
runs-on: ubuntu-latest | ||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: 'true' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Run eslint | ||
run: pnpm run lint | ||
|
||
- name: Run prettier | ||
run: pnpm run format-check | ||
|
||
- name: Run type declaration tests | ||
run: pnpm run test-dts | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [unit-test, lint-and-test-dts] | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'pnpm' | ||
|
||
- run: pnpm install | ||
|
||
- name: Build | ||
run: pnpm build --withTypes | ||
|
||
- name: Publish | ||
run: pnpm dlx [email protected] publish './packages/*' --template './playground' --pnpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
dist | ||
*.md | ||
*.html | ||
pnpm-lock.yaml | ||
CHANGELOG*.md |
Oops, something went wrong.