-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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/hmr-with-async-component
- Loading branch information
Showing
2 changed files
with
36 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,19 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Download PR number | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
name: pr-number | ||
run_id: ${{ github.event.workflow_run.id }} | ||
path: /tmp/pr-number | ||
|
||
- name: Read PR Number | ||
id: pr-number | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: /tmp/pr-number/pr.txt | ||
|
||
- name: Download Size Data | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
|
@@ -55,10 +68,18 @@ jobs: | |
- name: Prepare report | ||
run: pnpm tsx scripts/size-report.ts > size-report.md | ||
|
||
- name: Read Size Report | ||
id: size-report | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ./size-report.md | ||
|
||
- name: Create Comment | ||
uses: thollander/actions-[email protected] | ||
uses: actions-cool/maintain-one-comment@v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
filePath: size-report.md | ||
pr_number: ${{ github.event.workflow_run.pull_requests[0].number }} | ||
comment_tag: VUE_CORE_SIZE | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ steps.pr-number.outputs.content }} | ||
body: | | ||
${{ steps.size-report.outputs.content }} | ||
<!-- VUE_CORE_SIZE --> | ||
body-include: '<!-- VUE_CORE_SIZE -->' |