Skip to content

Commit e1a9f03

Browse files
authored
fix: update action
1 parent 67405c3 commit e1a9f03

File tree

4 files changed

+42
-1613
lines changed

4 files changed

+42
-1613
lines changed

.github/workflows/test-release-alpha.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ jobs:
3333
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
3434

3535
- name: Package size report
36-
uses: andresz1/size-limit-action@94bc357df29c36c8f8d50ea497c3e225c3c95d1d # pin@v1
36+
uses: bgd-labs/size-limit-action@ae1e75a19db162bbc72bc446f60c4dfd2f27583f # pin@v1
3737
with:
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
min_delta: 2
3940

4041
release-node-alpha:
4142
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'

.size-limit.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type {SizeLimitConfig} from 'size-limit';
2+
import {readdirSync} from 'fs';
3+
4+
const files = readdirSync('dist');
5+
6+
module.exports = files
7+
.filter((file) => file.endsWith('.js'))
8+
.map((file) => ({path: `dist/${file}`})) satisfies SizeLimitConfig;

0 commit comments

Comments
 (0)