diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eab280e..db6d8d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -204,6 +204,13 @@ jobs: echo "dry_run=$dry_run" >> "$GITHUB_OUTPUT" echo "Using npm tag '$tag' (dry-run: $dry_run)." + - name: Use Node.js for npm trusted publishing + if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' + uses: actions/setup-node@v4 + with: + node-version: 24 + registry-url: 'https://registry.npmjs.org' + - name: Publish to npm if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' env: