From dc0d2176a4206ef53f149cb60e8c8d14b1d31d0e Mon Sep 17 00:00:00 2001 From: caballeto Date: Sat, 11 Apr 2026 19:54:32 +0200 Subject: [PATCH] fix: dispatch surface_published after npm publish for verify timing The publish-verify workflow in the monorepo was triggered by surface_release, which fires after build but before npm publish. This caused ETARGET errors because the package wasn't on npm yet. Add a surface_published dispatch step that fires immediately after npm publish succeeds, so the monorepo can verify the live package. Made-with: Cursor --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 278fef1..78a7c88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,6 +54,15 @@ jobs: - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Trigger publish verification in monorepo + run: | + gh api repos/devhelmhq/mono/dispatches \ + -f event_type=surface_published \ + -f "client_payload[repo]=${{ github.repository }}" \ + -f "client_payload[tag]=${{ github.ref_name }}" \ + -f "client_payload[sha]=${{ github.sha }}" + env: + GH_TOKEN: ${{ secrets.MONOREPO_DISPATCH_TOKEN }} github-release: runs-on: ubuntu-latest