From 39622f11ca829707be1d5a9454c75d7ba54cdd40 Mon Sep 17 00:00:00 2001 From: 0xpolarzero <0xpolarzero@gmail.com> Date: Thu, 30 Jan 2025 19:42:42 +0100 Subject: [PATCH] fix: workspace dependency resolving --- .github/workflows/npm-publish.yml | 9 +++++++++ packages/indexer/package.json | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0996647..7696f65 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -30,6 +30,15 @@ jobs: working-directory: packages/gql run: npx --package semantic-release --package semantic-release-monorepo semantic-release --branches main + - name: Update Indexer Workspace Dependencies + if: github.ref == 'refs/heads/main' + working-directory: packages/indexer + run: | + # Get the latest published version of the GQL package + LATEST_GQL_VERSION=$(npm view @primodiumxyz/dex-graphql version) + # Update the dependency in package.json + npm pkg set dependencies.@primodiumxyz/dex-graphql="^${LATEST_GQL_VERSION}" + - name: Release Indexer Package if: github.ref == 'refs/heads/main' env: diff --git a/packages/indexer/package.json b/packages/indexer/package.json index 6cef9db..66bcc95 100644 --- a/packages/indexer/package.json +++ b/packages/indexer/package.json @@ -52,9 +52,6 @@ "tsup": "^8.3.6", "tsx": "^3.12.6" }, - "bundleDependencies": [ - "@primodiumxyz/dex-graphql" - ], "publishConfig": { "access": "public" }