diff --git a/.github/workflows/cd.packages-stable.create-release-drafts.yml b/.github/workflows/cd.packages-stable.create-release-drafts.yml index f1355547d6..23ba0243ff 100644 --- a/.github/workflows/cd.packages-stable.create-release-drafts.yml +++ b/.github/workflows/cd.packages-stable.create-release-drafts.yml @@ -63,7 +63,16 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Check package versions - run: ./tasks/check-package-version.sh subgraph SHOULD_PUBLISH_SUBGRAPH SUBGRAPH_NEW_VERSION >> "$GITHUB_ENV" + run: | + SUBGRAPH_NEW_VERSION=$(jq -r .version packages/subgraph/package.json) + if git tag | grep -e "^subgraph@v${SUBGRAPH_NEW_VERSION}$";then + echo "subgraph version unchanged: $SUBGRAPH_NEW_VERSION" >&2 + echo "SHOULD_PUBLISH_SUBGRAPH=0" >> "$GITHUB_ENV" + else + echo "subgraph changed: $SUBGRAPH_NEW_VERSION" >&2 + echo "SHOULD_PUBLISH_SUBGRAPH=1" >> "$GITHUB_ENV" + echo "SUBGRAPH_NEW_VERSION=$NEW_SUBGRAPH_VERSION" >> "$GITHUB_ENV" + fi - name: Create subgraph stable release draft if: env.SHOULD_PUBLISH_SUBGRAPH == 1 diff --git a/packages/sdk-core/test/5_subgraph.test.ts b/packages/sdk-core/test/5_subgraph.test.ts index 1fed4ea177..3ad2fec0ed 100644 --- a/packages/sdk-core/test/5_subgraph.test.ts +++ b/packages/sdk-core/test/5_subgraph.test.ts @@ -48,8 +48,8 @@ describe("Subgraph Tests", () => { if (process.env.SUBGRAPH_ENDPOINT === "") { await Promise.all( resolverDataArray.map(async (x) => { - // @note skip eth-sepolia because it is not deployed on hosted-service - if (x.networkName !== "eth-sepolia") { + // @note skip networks without subgraph endpoints + if (x.subgraphAPIEndpoint !== "") { const query = new Query({ customSubgraphQueriesEndpoint: x.subgraphAPIEndpoint,