Skip to content

Commit e196c9d

Browse files
committed
ci: add download artifacts
1 parent f532fcd commit e196c9d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ jobs:
118118
size:
119119
runs-on: ubuntu-latest
120120
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
121-
env:
122-
CI_JOB_NUMBER: 1
121+
123122
steps:
124123
- uses: actions/checkout@v3
125124

@@ -134,3 +133,12 @@ jobs:
134133

135134
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
136135
- run: pnpm run size
136+
137+
- name: Download artifact
138+
id: download-artifact
139+
uses: dawidd6/action-download-artifact@v2
140+
with:
141+
workflow_conclusion: success
142+
pr: ${{github.event.pull_request.number}}
143+
# branch: main
144+
name: size-report

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build-dts": "tsc -p tsconfig.build.json && rollup -c rollup.dts.config.js",
1010
"size": "run-s size-global size-baseline",
1111
"size-global": "node scripts/build.js vue runtime-dom -f global -p --size",
12-
"size-baseline": "node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && node scripts/export-size.js && cd packages/size-check && vite build && node size",
12+
"size-baseline": "node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && node scripts/export-size.js && cd packages/size-check && vite build && node size-report",
1313
"check": "tsc --incremental --noEmit",
1414
"lint": "eslint --cache --ext .ts packages/*/{src,__tests__}/**.ts",
1515
"format": "prettier --write --cache \"**/*.[tj]s?(x)\"",
File renamed without changes.

0 commit comments

Comments
 (0)