Skip to content

Commit 852560b

Browse files
committed
ci: upload first
1 parent 26c38a6 commit 852560b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,20 @@ jobs:
134134
- run: PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
135135
- run: pnpm run size
136136

137+
- uses: actions/upload-artifact@v3
138+
with:
139+
name: size-report
140+
path: temp/size
141+
137142
- name: Download artifact
138143
id: download-artifact
139144
uses: dawidd6/action-download-artifact@v2
140145
continue-on-error: true
141146
with:
142-
workflow_conclusion: success
143147
pr: ${{github.event.pull_request.number}}
144148
# branch: main
145149
name: size-report
146150

147-
- uses: actions/upload-artifact@v3
151+
- name: test
152+
run: echo "hello"
148153
if: ${{ success() }}
149-
with:
150-
name: size-report
151-
path: temp/size

scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function checkFileSize(filePath) {
175175
await fs.writeFile(
176176
path.resolve(sizeDir, `${fileName}.json`),
177177
JSON.stringify({
178-
file: filePath,
178+
file: fileName,
179179
size: file.length,
180180
gzip: gzipped.length,
181181
brotli: brotli.length

0 commit comments

Comments
 (0)