Skip to content

FEC-294: update NPM package publishing setup#3198

Merged
tdeekens merged 6 commits into
mainfrom
FEC-294-trusted-publishing
Nov 24, 2025
Merged

FEC-294: update NPM package publishing setup#3198
tdeekens merged 6 commits into
mainfrom
FEC-294-trusted-publishing

Conversation

@jaikumar-tj
Copy link
Copy Markdown
Contributor

@jaikumar-tj jaikumar-tj commented Nov 21, 2025

Summary

After bumping npmrc version, thebundlesize was causing an issue since it is not compatible with latest node (refer below comment). I replaced it with bundlewatch.

  • Release yaml updated
  • node version bumped

@jaikumar-tj jaikumar-tj self-assigned this Nov 21, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 21, 2025

🦋 Changeset detected

Latest commit: dd8116a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 101 packages
Name Type
@commercetools-uikit/design-system Patch
@commercetools-local/generator-package-json Patch
@commercetools-local/generator-readme Patch
@commercetools-uikit/calendar-time-utils Patch
@commercetools-uikit/calendar-utils Patch
@commercetools-uikit/accessible-hidden Patch
@commercetools-uikit/avatar Patch
@commercetools-uikit/accessible-button Patch
@commercetools-uikit/flat-button Patch
@commercetools-uikit/icon-button Patch
@commercetools-uikit/link-button Patch
@commercetools-uikit/primary-button Patch
@commercetools-uikit/secondary-button Patch
@commercetools-uikit/secondary-icon-button Patch
@commercetools-uikit/card Patch
@commercetools-uikit/collapsible Patch
@commercetools-uikit/collapsible-motion Patch
@commercetools-uikit/collapsible-panel Patch
@commercetools-uikit/constraints Patch
@commercetools-uikit/data-table Patch
@commercetools-uikit/data-table-manager Patch
@commercetools-uikit/dropdown-menu Patch
@commercetools-uikit/field-errors Patch
@commercetools-uikit/field-label Patch
@commercetools-uikit/field-warnings Patch
@commercetools-uikit/async-creatable-select-field Patch
@commercetools-uikit/async-select-field Patch
@commercetools-uikit/creatable-select-field Patch
@commercetools-uikit/date-field Patch
@commercetools-uikit/date-range-field Patch
@commercetools-uikit/date-time-field Patch
@commercetools-uikit/localized-multiline-text-field Patch
@commercetools-uikit/localized-text-field Patch
@commercetools-uikit/money-field Patch
@commercetools-uikit/multiline-text-field Patch
@commercetools-uikit/number-field Patch
@commercetools-uikit/password-field Patch
@commercetools-uikit/radio-field Patch
@commercetools-uikit/search-select-field Patch
@commercetools-uikit/select-field Patch
@commercetools-uikit/text-field Patch
@commercetools-uikit/time-field Patch
@commercetools-uikit/filters Patch
@commercetools-uikit/grid Patch
@commercetools-uikit/icons Patch
@commercetools-uikit/async-creatable-select-input Patch
@commercetools-uikit/async-select-input Patch
@commercetools-uikit/checkbox-input Patch
@commercetools-uikit/creatable-select-input Patch
@commercetools-uikit/date-input Patch
@commercetools-uikit/date-range-input Patch
@commercetools-uikit/date-time-input Patch
@commercetools-uikit/input-utils Patch
@commercetools-uikit/localized-money-input Patch
@commercetools-uikit/localized-multiline-text-input Patch
@commercetools-uikit/localized-rich-text-input Patch
@commercetools-uikit/localized-text-input Patch
@commercetools-uikit/money-input Patch
@commercetools-uikit/multiline-text-input Patch
@commercetools-uikit/number-input Patch
@commercetools-uikit/password-input Patch
@commercetools-uikit/radio-input Patch
@commercetools-uikit/rich-text-input Patch
@commercetools-uikit/rich-text-utils Patch
@commercetools-uikit/search-select-input Patch
@commercetools-uikit/search-text-input Patch
@commercetools-uikit/select-input Patch
@commercetools-uikit/select-utils Patch
@commercetools-uikit/selectable-search-input Patch
@commercetools-uikit/text-input Patch
@commercetools-uikit/time-input Patch
@commercetools-uikit/toggle-input Patch
@commercetools-uikit/label Patch
@commercetools-uikit/link Patch
@commercetools-uikit/loading-spinner Patch
@commercetools-uikit/messages Patch
@commercetools-uikit/notifications Patch
@commercetools-uikit/pagination Patch
@commercetools-uikit/primary-action-dropdown Patch
@commercetools-uikit/progress-bar Patch
@commercetools-uikit/quick-filters Patch
@commercetools-uikit/spacings-inline Patch
@commercetools-uikit/spacings-inset Patch
@commercetools-uikit/spacings-inset-squish Patch
@commercetools-uikit/spacings-stack Patch
@commercetools-uikit/stamp Patch
@commercetools-uikit/tag Patch
@commercetools-uikit/text Patch
@commercetools-uikit/tooltip Patch
@commercetools-uikit/view-switcher Patch
@commercetools-uikit/hooks Patch
@commercetools-uikit/i18n Patch
@commercetools-uikit/localized-utils Patch
@commercetools-uikit/utils Patch
@commercetools-uikit/buttons Patch
@commercetools-uikit/fields Patch
@commercetools-uikit/inputs Patch
@commercetools-uikit/spacings Patch
@commercetools-frontend/ui-kit Patch
@commercetools-local/storybook Patch
visual-testing-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ui-kit Ready Ready Preview Comment Nov 21, 2025 2:16pm

@jaikumar-tj jaikumar-tj added the fe-chapter-rotation Tasks coming from frontend chapter work label Nov 21, 2025
@jaikumar-tj jaikumar-tj requested a review from a team November 21, 2025 09:09
Comment on lines -73 to -77
- name: Checking bundle size of visual testing app
run: yarn bundlesize
# env:
# NOTE: it seems that currently bundlesize server is having problems
# resulting in status code 500. Because of that, the bundlesize script
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue is that iltorb@2.4.5 (a dependency of brotli-size@0.1.0, which is used by bundlesize) doesn't support Node.js 24 because it uses deprecated V8 APIs.

I'm trying to find a alternate solution to resolve this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this new github action also seems to use same iltorb. will keep digging

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bundlewatch package works with node 24 and it expects a token if we want it to update the status of PR. Let me know if you think we can go with bundlewatch or not. Currently it generates same output as the previous bundlesize package.
https://bundlewatch.io/guide/using-bundlewatch

Image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I think we can swap.

@tdeekens
Copy link
Copy Markdown
Contributor

I need to update all 42 packages on NPM manually. This can't be real :D

@jaikumar-tj jaikumar-tj marked this pull request as ready for review November 21, 2025 12:56
@jaikumar-tj jaikumar-tj requested a review from a team as a code owner November 21, 2025 12:56
Comment on lines -73 to -77
- name: Checking bundle size of visual testing app
run: yarn bundlesize
# env:
# NOTE: it seems that currently bundlesize server is having problems
# resulting in status code 500. Because of that, the bundlesize script
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I think we can swap.

@ragafus
Copy link
Copy Markdown
Contributor

ragafus commented Nov 24, 2025

Is the ui-kit also using Vercel deploys commercetools/merchant-center-application-kit#3881? 🤔

@tdeekens tdeekens merged commit 4e4736f into main Nov 24, 2025
9 checks passed
@tdeekens tdeekens deleted the FEC-294-trusted-publishing branch November 24, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fe-chapter-rotation Tasks coming from frontend chapter work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants