From 975ee539e05c0988a8d934ff736f66bdd2b656df Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Wed, 1 Apr 2026 07:35:46 +0100 Subject: [PATCH] fix(ci): build gitnexus-shared before npm ci in publish workflow The publish job failed because npm ci triggers the prepare script (tsc) before gitnexus-shared types are available. Add the same build step that the setup-gitnexus composite action uses in CI. --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3da4682080..b8ef3f9fc8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,10 @@ jobs: registry-url: https://registry.npmjs.org cache: npm cache-dependency-path: gitnexus/package-lock.json + - name: Build gitnexus-shared + run: npm install && npm run build + working-directory: gitnexus-shared + - run: npm ci working-directory: gitnexus