From 3e97e12ef372c846f2e81d8cada8aafcf9315fa5 Mon Sep 17 00:00:00 2001 From: "jorisjonkers-dev-agents[bot]" Date: Sun, 28 Jun 2026 15:45:52 +0000 Subject: [PATCH] fix(clients): use plain setup-node (no install in empty dir) The shared publish-api-clients workflow invoked the setup-node composite action with an install-command pointed at the not-yet-created typescript dir, so every Client Dry Run failed at setup-node. Use actions/setup-node@v4 to install Node + configure the registry only; the ephemeral TypeScript project (created by api-client-publish) runs its own npm install. --- .github/workflows/publish-api-clients.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-api-clients.yml b/.github/workflows/publish-api-clients.yml index 18f2cab..97d7c7e 100644 --- a/.github/workflows/publish-api-clients.yml +++ b/.github/workflows/publish-api-clients.yml @@ -74,13 +74,12 @@ jobs: java-version: ${{ inputs.java-version }} github-packages-token: ${{ secrets.packages-token || github.token }} - - uses: ./.github-workflows/actions/setup-node + # Install Node + configure the GitHub Packages registry only. Do NOT install here — + # the typescript project is created by api-client-publish, which runs npm install itself. + - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} - package-manager: npm - install-command: "npm install --no-audit --no-fund" - working-directory: ${{ runner.temp }}/api-clients/typescript - github-packages-token: ${{ secrets.node-auth-token || secrets.packages-token || github.token }} + registry-url: ${{ inputs.npm-registry-url }} - name: Generate and verify all clients uses: ./.github-workflows/actions/api-client-publish