Skip to content

Commit f5f255c

Browse files
committed
add job for bundle analysis
1 parent 4c64525 commit f5f255c

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,22 @@ jobs:
8181
cache: 'npm'
8282
node-version: 22
8383
- run: npm ci --ignore-scripts --no-audit --no-fund
84-
- name: Build package
85-
run: npm run build
86-
- name: Lint package
87-
run: npm run lint-package
84+
- run: npm run build
85+
- run: npm run lint-package
86+
87+
bundle-analysis:
88+
name: Report bundle analysis (codecov)
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v5
92+
- uses: actions/setup-node@v5
93+
with:
94+
cache: 'npm'
95+
node-version: 22
96+
- run: npm ci --ignore-scripts --no-audit --no-fund
97+
- run: npm run build
98+
env:
99+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
88100

89101
npm-audit:
90102
name: Audit packages
@@ -97,5 +109,4 @@ jobs:
97109
with:
98110
cache: 'npm'
99111
node-version: 22
100-
- name: npm audit
101-
run: npm audit --audit-level=high
112+
- run: npm audit --audit-level=high

tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig([
1111
enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
1212
bundleName: 'index.js',
1313
uploadToken: process.env.CODECOV_TOKEN,
14+
telemetry: false,
1415
}),
1516
],
1617
},

0 commit comments

Comments
 (0)