From 43348bb01e4c706821d36fb90f501af9a25a12d9 Mon Sep 17 00:00:00 2001 From: Dani Sandoval Date: Tue, 21 Apr 2026 15:13:13 -0600 Subject: [PATCH 1/2] fix(publish.yml): globally install node. use correct github action name" --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 963fba4f6..8948773ea 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,8 +59,8 @@ jobs: fetch-depth: 0 - name: Set up Git run: | - git config user.email "actions@clickhouse.com" - git config user.name "GitHub Actions" + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" - name: Bump package version (for version inputs) if: ${{ env.IS_VERSION_INPUT == 'true' }} run: | @@ -78,7 +78,9 @@ jobs: npm pkg set version=$NEW_VERSION --no-git-tag-version - uses: actions/setup-node@v6 with: - node-version: '23.x' # Node 22 includes npm >= 11.5.1 with OIDC support + node-version: '23.x' + # registry-url is required for OIDC trusted publishing. Avoid `npm install -g npm@latest` + # on hosted runners — it can leave npm broken (e.g. MODULE_NOT_FOUND / promise-retry). registry-url: 'https://registry.npmjs.org' - name: Enable Corepack run: corepack enable From eea3ad41e4142e16a58f1735e75d99d11d6d5c75 Mon Sep 17 00:00:00 2001 From: Dani Sandoval Date: Tue, 21 Apr 2026 15:14:40 -0600 Subject: [PATCH 2/2] fix(publish.yml): add npm upgrade --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8948773ea..8adfa84bf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -82,6 +82,10 @@ jobs: # registry-url is required for OIDC trusted publishing. Avoid `npm install -g npm@latest` # on hosted runners — it can leave npm broken (e.g. MODULE_NOT_FOUND / promise-retry). registry-url: 'https://registry.npmjs.org' + - name: Upgrade npm for OIDC support + run: | + npm install -g npm@latest + echo "npm version: $(npm --version)" - name: Enable Corepack run: corepack enable - name: Install dependencies