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" }