Skip to content

Commit f02a206

Browse files
committed
chore(ci): fix size-limit action
1 parent 2304838 commit f02a206

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
cache: pnpm
2222
- name: Install dependencies
2323
run: pnpm install --frozen-lockfile --ignore-scripts
24-
- name: Run tests
24+
- name: Linter
2525
run: pnpm test:lint
2626

.github/workflows/size-limit.yml

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: "Size-Limit"
1+
name: Size Limit
22

33
on:
44
pull_request:
5+
push:
56
branches:
67
- main
8+
79
jobs:
8-
size:
10+
size-limit:
911
runs-on: ubuntu-latest
10-
env:
11-
CI_JOB_NUMBER: 1
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Checkout the repository
14+
uses: actions/checkout@v4
1415
- name: Install pnpm
1516
uses: pnpm/action-setup@v4
1617
- name: Install Node.js
@@ -20,10 +21,6 @@ jobs:
2021
cache: pnpm
2122
- name: Install dependencies
2223
run: pnpm install --frozen-lockfile --ignore-scripts
23-
- name: Size Limit
24-
uses: andresz1/size-limit-action@v1
25-
with:
26-
build_script: build:ci
27-
directory: packages/react-dadata
28-
package_manager: pnpm
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Run Size Limit
25+
run: pnpm --filter react-dadata test:size-limit
26+

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: pnpm install --frozen-lockfile --ignore-scripts
2727
- name: Type Check
2828
run: pnpm --filter react-dadata test:type-check
29-
- name: Run tests
29+
- name: Tests
3030
run:
3131
pnpm test
3232
- name: Coveralls

packages/react-dadata/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,25 @@
6767
"name": "AddressSuggestions",
6868
"path": "dist/esm/index.js",
6969
"import": "{ AddressSuggestions }",
70-
"limit": "6 KB"
70+
"limit": "5.5 KB"
7171
},
7272
{
7373
"name": "PartySuggestions",
7474
"path": "dist/esm/index.js",
7575
"import": "{ PartySuggestions }",
76-
"limit": "6 KB"
76+
"limit": "5.5 KB"
7777
},
7878
{
7979
"name": "FioSuggestions",
8080
"path": "dist/esm/index.js",
8181
"import": "{ FioSuggestions }",
82-
"limit": "6 KB"
82+
"limit": "5.5 KB"
8383
},
8484
{
8585
"name": "BankSuggestions",
8686
"path": "dist/esm/index.js",
8787
"import": "{ BankSuggestions }",
88-
"limit": "6 KB"
88+
"limit": "5.5 KB"
8989
}
9090
],
9191
"browserslist": {

0 commit comments

Comments
 (0)