Skip to content

chore(deps): bump @storybook/react-vite from 7.6.17 to 8.4.7 #279

chore(deps): bump @storybook/react-vite from 7.6.17 to 8.4.7

chore(deps): bump @storybook/react-vite from 7.6.17 to 8.4.7 #279

name: Check Package Sizes
on:
pull_request:
concurrency:
group: check-package-sizes-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-package-sizes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "yarn"
- name: Install Dependencies
run: yarn --immutable
- name: Build Current Branch
run: yarn build:packages
- name: Get Current Package Sizes
uses: ./.github/actions/check-package-sizes-action
id: current-package-sizes
- name: Checkout Main
uses: actions/checkout@v4
with:
ref: main
- name: Install Dependencies
run: yarn --immutable
- name: Build Main Branch
run: yarn build:packages
- name: Get Main Package Sizes
uses: ./.github/actions/check-package-sizes-action
id: main-package-sizes
- name: Compare Package Sizes
uses: ./.github/actions/compare-package-sizes-action
with:
current-package-sizes: ${{ steps.current-package-sizes.outputs.package-sizes }}
previous-package-sizes: ${{ steps.main-package-sizes.outputs.package-sizes }}
id: compare-package-sizes
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
token: ${{ secrets.KNOCK_ENG_BOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
comment-author: "knock-eng-bot"
body-includes: ### Package size differences
- name: Create comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.KNOCK_ENG_BOT_GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.compare-package-sizes.outputs.pr-comment }}
- name: Update comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v1
with:
token: ${{ secrets.KNOCK_ENG_BOT_GITHUB_TOKEN }}
comment-id: ${{ steps.fc.outputs.comment-id }}
body: ${{ steps.compare-package-sizes.outputs.pr-comment }}
edit-mode: replace