core
core copied to clipboard
ci(deployment): Edit Page V2 Automate the deploy of the SDK librar (#28259)
Proposed Changes
- This PR introduces a script enhancement that automates version management and dependency updates for our SDK libraries and example projects. The key improvements include:
-
Version Bumping Logic:
- Updated the version bumping function to correctly handle the
-alpha.X
suffix. The function now accurately increments the build number, ensuring the new version format is correctly applied (e.g.,0.0.1-alpha.34
->0.0.1-alpha.35
).
- Updated the version bumping function to correctly handle the
-
SDK Libraries Version Update:
- All SDK libraries within the
sdk
directory now have their versions consistently updated to the newly calculated version.
- All SDK libraries within the
-
Peer Dependencies Update:
- Updated
peerDependencies
within the SDK libraries to reflect the new version of theclient
library, ensuring internal consistency among the SDK packages.
- Updated
-
Example Projects Dependency Update:
- The script also updates the
dependencies
in all example projects within the../examples
directory to match the new SDK versions, maintaining alignment across the entire project.
- The script also updates the
These changes streamline the process of managing versions and dependencies, reducing manual effort and minimizing the risk of inconsistencies.
-
Includes a new GitHub Action that automates the process of publishing our SDK libraries to the NPM registry (
deploy-sdk-npm
). The action streamlines our release workflow by handling version management, validation, and the actual publishing process, ensuring that our packages are consistently and correctly published with minimal manual intervention. This action will be triggered after any push on the master branch if there is any changes on at least one of the sdk packages. -
Regarding the CI/CD in the initialize phase we added two new inputs,
validation-level
andcustom-modules
, to specify validation levels and custom modules respectively. Introduced a new output sdk_libs. Updated the changes job to includesdk_libs
output, adjusted conditions foractions/checkout
anddorny/paths-filter
based onvalidation-level
, and added logic to handle custom validationlevels
andmodules
.
Additional Info
Related to #28259 (Edit Page V2 Automate the deploy of the SDK libraries).