From d003c729f01f7073af14c1f2e57f02069dd8f6bd Mon Sep 17 00:00:00 2001 From: Multi-Repo Pushback Bot Date: Thu, 30 Apr 2026 09:50:36 -0700 Subject: [PATCH 1/2] fix(ci): publish SDK internal deps before sdk --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f695bc6d3..37fa5dcb2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1040,11 +1040,42 @@ jobs: - name: Update npm for OIDC support run: npm install -g npm@latest + - name: Dry run SDK internal deps + if: github.event.inputs.dry_run == 'true' + run: | + set -euo pipefail + for package in config github-primitive workflow-types; do + echo "Dry run - would publish @agent-relay/${package}" + (cd "packages/${package}" && npm publish --dry-run --access public --tag ${{ github.event.inputs.tag }} --ignore-scripts) + done + - name: Dry run check if: github.event.inputs.dry_run == 'true' working-directory: packages/sdk run: npm publish --dry-run --access public --tag ${{ github.event.inputs.tag }} --ignore-scripts + - name: Publish SDK internal deps to NPM + if: github.event.inputs.dry_run != 'true' + run: | + set -euo pipefail + VERSION="${{ needs.build.outputs.new_version }}" + + publish_if_missing() { + local package="$1" + local name="@agent-relay/${package}" + if npm view "${name}@${VERSION}" version >/dev/null 2>&1; then + echo "✓ ${name}@${VERSION} is already published" + return + fi + + echo "Publishing ${name}@${VERSION}" + (cd "packages/${package}" && npm publish --access public --provenance --tag ${{ github.event.inputs.tag }} --ignore-scripts) + } + + publish_if_missing config + publish_if_missing github-primitive + publish_if_missing workflow-types + - name: Publish SDK to NPM if: github.event.inputs.dry_run != 'true' working-directory: packages/sdk From 6b3109a2c74ff475705690e9e893b14a2d33469d Mon Sep 17 00:00:00 2001 From: Khaliq Date: Thu, 30 Apr 2026 14:04:12 -0700 Subject: [PATCH 2/2] fix it Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37fa5dcb2..500a28c65 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1073,8 +1073,8 @@ jobs: } publish_if_missing config - publish_if_missing github-primitive publish_if_missing workflow-types + publish_if_missing github-primitive - name: Publish SDK to NPM if: github.event.inputs.dry_run != 'true'