Skip to content

Commit

Permalink
ci: stop dependencies from version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Oct 23, 2024
1 parent 559796f commit ab542a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/multi-brand-identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"dependencies": {
"@fontsource/inter": "^4.5.14",
"@fontsource/montserrat": "^4.5.13",
"@oxygen-ui/primitives": "1.15.1",
"@oxygen-ui/react": "1.15.1",
"@oxygen-ui/primitives": "workspace:*",
"@oxygen-ui/react": "workspace:../../packages/react/dist",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
7 changes: 7 additions & 0 deletions release/scripts/workspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ export default class WorkspacesPlugin extends Plugin {
for (let dependency in dependencies) {
if (workspaces.find((w) => w.name === dependency)) {
const existingVersion = dependencies[dependency];

// ignore workspace dependencies.
// Workaround for https://github.com/wso2/oxygen-ui/issues/297.
if (existingVersion.includes('workspace')) {
return;
}

const replacementVersion = this._buildReplacementDepencencyVersion(
existingVersion,
newVersion
Expand Down

0 comments on commit ab542a2

Please sign in to comment.