From c9a82898446fab29634310bbafacefd9285274fb Mon Sep 17 00:00:00 2001 From: Khaliq Date: Thu, 23 Apr 2026 21:19:27 +0200 Subject: [PATCH] ci(publish): add @relayauth/migrate to the publish workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package was introduced in #26 but the publish workflow's choice list and 'all' branch were never updated, so a workflow_dispatch with package=all would skip it and subsequent @relayauth/server@ publishes would fail downstream — server's dependency on @relayauth/migrate can't resolve when migrate isn't on npm. Inserted before server in the 'all' ordering because the publish job runs max-parallel: 1 and server depends on migrate; list order is publish order. The generic package-directory resolver in the publish step already handles packages/migrate/ via the default branch — no other changes needed. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 17fb6c6..85e5ae2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,7 @@ on: - core - sdk - types + - migrate - server - relayauth default: "all" @@ -93,8 +94,11 @@ jobs: run: | INPUT="${{ github.event.inputs.package }}" if [ "$INPUT" = "all" ]; then - echo "list=types,core,sdk,server,relayauth" >> "$GITHUB_OUTPUT" - echo 'matrix=["types","core","sdk","server","relayauth"]' >> "$GITHUB_OUTPUT" + # migrate must be published before server — server depends on it. + # The publish job runs max-parallel: 1, so list order determines + # publish order. + echo "list=types,core,sdk,migrate,server,relayauth" >> "$GITHUB_OUTPUT" + echo 'matrix=["types","core","sdk","migrate","server","relayauth"]' >> "$GITHUB_OUTPUT" else echo "list=$INPUT" >> "$GITHUB_OUTPUT" echo "matrix=[\"$INPUT\"]" >> "$GITHUB_OUTPUT"