Skip to content

Commit

Permalink
[sdk-core][sdk-redux][chore] bump minor version instead, make subgrap…
Browse files Browse the repository at this point in the history
…h test non-blocking for release draft (#1938)

* test v1 subgraph schema against self-hosted subgraph

* bump minor version instead in caution of a breaking change

* remove the requirement of subgraph tests succeeding for a release draft
  • Loading branch information
kasparkallas authored May 1, 2024
1 parent 2c8e0a5 commit 59ded82
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ jobs:
needs:
[
check-sdk-core-version,
test-sdk-core-query-schema-against-deployed-v1-subgraphs,
test-sdk-core-with-v1-release-subgraph,
]

permissions: write-all
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed
### Fixed

## [0.6.13] - 2023-04-30
## [0.7.0] - 2023-05-01

### Added

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superfluid-finance/sdk-core",
"version": "0.6.13",
"version": "0.7.0",
"description": "SDK Core for building with Superfluid Protocol",
"homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/sdk-core#readme",
"repository": {
Expand Down
7 changes: 6 additions & 1 deletion packages/sdk-core/tasks/testSchemasAndQueries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ for i in "${NETWORKS[@]}";do

GRAPH_NETWORK="${LEGACY_NETWORK_NAMES[$i]:-$i}"

SUBGRAPH_ENDPOINT=https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-$SUBGRAPH_RELEASE_TAG-$GRAPH_NETWORK
if [ "$SUBGRAPH_RELEASE_TAG" == "v1" ]; then
# No need for the legacy name here
SUBGRAPH_ENDPOINT="https://${NETWORKS[$i]}.subgraph.x.superfluid.dev"
else
SUBGRAPH_ENDPOINT="https://api.thegraph.com/subgraphs/name/superfluid-finance/protocol-$SUBGRAPH_RELEASE_TAG-$GRAPH_NETWORK"
fi

testSchemaAndQueries

Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-redux/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ All notable changes to the SDK-redux will be documented in this file.
### Changed
### Fixed

## [0.5.2] - 2023-04-30
## [0.6.0] - 2023-05-01

### Changed

Expand Down
4 changes: 2 additions & 2 deletions packages/sdk-redux/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superfluid-finance/sdk-redux",
"version": "0.5.2",
"version": "0.6.0",
"description": "SDK Redux for streamlined front-end application development with Superfluid Protocol",
"homepage": "https://docs.superfluid.finance/",
"repository": {
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"peerDependencies": {
"@reduxjs/toolkit": "^1.7.0 || ^1.8.0 || ^1.9.0",
"@superfluid-finance/sdk-core": "^0.6.13"
"@superfluid-finance/sdk-core": "^0.7.0"
},
"files": [
"dist/main",
Expand Down
2 changes: 1 addition & 1 deletion packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"dependencies": {
"@graphprotocol/graph-cli": "0.69.1",
"@graphprotocol/graph-ts": "0.34.0",
"@superfluid-finance/sdk-core": "^0.6.13",
"@superfluid-finance/sdk-core": "^0.7.0",
"mustache": "^4.2.0"
},
"devDependencies": {
Expand Down

0 comments on commit 59ded82

Please sign in to comment.