diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c07d760e..395bcdf34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,3 +49,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: pkg-size/action@v1 + with: + build-command: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 33f674e3c..2ef491a65 100644 --- a/package.json +++ b/package.json @@ -112,6 +112,7 @@ "eslint-plugin-storybook": "^0.11.0", "husky": "^9.1.7", "json": "^11.0.0", + "pkg-size": "^2.4.0", "prettier": "^3.3.3", "pretty-quick": "^4.0.0", "react": "^18.0.0", diff --git a/yarn.lock b/yarn.lock index b2c83c873..12ad2644d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2878,6 +2878,7 @@ __metadata: json: "npm:^11.0.0" maath: "npm:^0.10.8" meshline: "npm:^3.3.1" + pkg-size: "npm:^2.4.0" prettier: "npm:^3.3.3" pretty-quick: "npm:^4.0.0" react: "npm:^18.0.0" @@ -10290,6 +10291,15 @@ __metadata: languageName: node linkType: hard +"pkg-size@npm:^2.4.0": + version: 2.4.0 + resolution: "pkg-size@npm:2.4.0" + bin: + pkg-size: bin/cli.js + checksum: 10c0/57656b9e45564ecfc232163cf17bbca4e96549c4ee02d39daa91cee1fcd2aea8ae717c24616561037f5cdc39314e6e0b32a34f3d502a75d9f25dce7ec0e44c1e + languageName: node + linkType: hard + "playwright-core@npm:1.45.2": version: 1.45.2 resolution: "playwright-core@npm:1.45.2"