Skip to content

Commit

Permalink
fix: workspace dependency resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpolarzero committed Jan 30, 2025
1 parent 6fae300 commit 39622f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
"tsup": "^8.3.6",
"tsx": "^3.12.6"
},
"bundleDependencies": [
"@primodiumxyz/dex-graphql"
],
"publishConfig": {
"access": "public"
}
Expand Down

0 comments on commit 39622f1

Please sign in to comment.