From 1b4a6e3ac10c2b5a45efff5c7581b41faac85389 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Wed, 20 Nov 2024 07:41:48 +0100 Subject: [PATCH 1/2] Update release.yml --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c07d760e..624c59648 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,9 @@ jobs: cache: 'yarn' - run: yarn install - run: yarn build + - uses: pkg-size/action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: yarn test build-and-release: From 8be456daf7d89e1a1a2a159e47986bdc81fa1ed1 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Wed, 20 Nov 2024 08:02:03 +0100 Subject: [PATCH 2/2] fetch-depth --- .github/workflows/release.yml | 8 +++++--- package.json | 1 + yarn.lock | 10 ++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 624c59648..395bcdf34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,6 @@ jobs: cache: 'yarn' - run: yarn install - run: yarn build - - uses: pkg-size/action@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: yarn test build-and-release: @@ -52,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"