From ab542a25f82fb694c9a7275d8e4e106fd0d73cab Mon Sep 17 00:00:00 2001 From: Brion Date: Wed, 23 Oct 2024 09:41:02 +0530 Subject: [PATCH] ci: stop dependencies from version bumps --- examples/multi-brand-identity/package.json | 4 ++-- release/scripts/workspaces.mjs | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/multi-brand-identity/package.json b/examples/multi-brand-identity/package.json index 2341e7f0..54d129c1 100644 --- a/examples/multi-brand-identity/package.json +++ b/examples/multi-brand-identity/package.json @@ -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" }, diff --git a/release/scripts/workspaces.mjs b/release/scripts/workspaces.mjs index 106fa0ff..06b07248 100644 --- a/release/scripts/workspaces.mjs +++ b/release/scripts/workspaces.mjs @@ -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