diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5423bfea3..512de205b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,11 @@ jobs: ``` bin: name: Binary built on ${{ matrix.os }} + needs: [stable, snapshot] + if: always() && ( + contains(needs.stable.outputs.publishedPackages, '@graphql-hive/gateway') || + contains(needs.snapshot.outputs.publishedPackages, '@graphql-hive/gateway') + ) runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -127,7 +132,7 @@ jobs: with: result-encoding: string script: | - const publishedPackages = [{"name":"@graphql-hive/gateway","version":"1.4.1"},{"name":"@graphql-hive/gateway-runtime","version":"1.0.0"}]; + const publishedPackages = ${{ needs.stable.outputs.publishedPackages || needs.snapshot.outputs.publishedPackages }}; const gateway = publishedPackages.find((p) => p.name === '@graphql-hive/gateway'); if (!gateway) { return core.setFailed('@graphql-hive/gateway was not published!');