From 59ded82f9a83811b2363368632cc3ba3e2c71c99 Mon Sep 17 00:00:00 2001 From: Kaspar Kallas Date: Wed, 1 May 2024 12:30:40 +0300 Subject: [PATCH] [sdk-core][sdk-redux][chore] bump minor version instead, make subgraph 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 --- .../workflows/cd.packages-stable.create-release-drafts.yml | 2 -- packages/sdk-core/CHANGELOG.md | 2 +- packages/sdk-core/package.json | 2 +- packages/sdk-core/tasks/testSchemasAndQueries.sh | 7 ++++++- packages/sdk-redux/CHANGELOG.md | 2 +- packages/sdk-redux/package.json | 4 ++-- packages/subgraph/package.json | 2 +- 7 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.packages-stable.create-release-drafts.yml b/.github/workflows/cd.packages-stable.create-release-drafts.yml index b54f59507f..a5cef1878d 100644 --- a/.github/workflows/cd.packages-stable.create-release-drafts.yml +++ b/.github/workflows/cd.packages-stable.create-release-drafts.yml @@ -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 diff --git a/packages/sdk-core/CHANGELOG.md b/packages/sdk-core/CHANGELOG.md index c4bb84b7fe..355c13d20d 100644 --- a/packages/sdk-core/CHANGELOG.md +++ b/packages/sdk-core/CHANGELOG.md @@ -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 diff --git a/packages/sdk-core/package.json b/packages/sdk-core/package.json index 689287748c..477107b9a7 100644 --- a/packages/sdk-core/package.json +++ b/packages/sdk-core/package.json @@ -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": { diff --git a/packages/sdk-core/tasks/testSchemasAndQueries.sh b/packages/sdk-core/tasks/testSchemasAndQueries.sh index 69e33841d9..2b8c64cc6f 100755 --- a/packages/sdk-core/tasks/testSchemasAndQueries.sh +++ b/packages/sdk-core/tasks/testSchemasAndQueries.sh @@ -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 diff --git a/packages/sdk-redux/CHANGELOG.md b/packages/sdk-redux/CHANGELOG.md index a89d1ad3e9..cb3e71513f 100644 --- a/packages/sdk-redux/CHANGELOG.md +++ b/packages/sdk-redux/CHANGELOG.md @@ -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 diff --git a/packages/sdk-redux/package.json b/packages/sdk-redux/package.json index 3e01f4335a..2430bca178 100644 --- a/packages/sdk-redux/package.json +++ b/packages/sdk-redux/package.json @@ -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": { @@ -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", diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 368d4a238f..04892a3577 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -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": {