Skip to content

Commit 0e4c652

Browse files
authored
fix(publish.yml): globally install node. use correct github action name (#1012)
* fix(publish.yml): globally install node. use correct github action name" * fix(publish.yml): add npm upgrade
1 parent d0e5639 commit 0e4c652

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
fetch-depth: 0
6060
- name: Set up Git
6161
run: |
62-
git config user.email "actions@clickhouse.com"
63-
git config user.name "GitHub Actions"
62+
git config user.name "github-actions[bot]"
63+
git config user.email "github-actions[bot]@users.noreply.github.com"
6464
- name: Bump package version (for version inputs)
6565
if: ${{ env.IS_VERSION_INPUT == 'true' }}
6666
run: |
@@ -78,8 +78,14 @@ jobs:
7878
npm pkg set version=$NEW_VERSION --no-git-tag-version
7979
- uses: actions/setup-node@v6
8080
with:
81-
node-version: '23.x' # Node 22 includes npm >= 11.5.1 with OIDC support
81+
node-version: '23.x'
82+
# registry-url is required for OIDC trusted publishing. Avoid `npm install -g npm@latest`
83+
# on hosted runners — it can leave npm broken (e.g. MODULE_NOT_FOUND / promise-retry).
8284
registry-url: 'https://registry.npmjs.org'
85+
- name: Upgrade npm for OIDC support
86+
run: |
87+
npm install -g npm@latest
88+
echo "npm version: $(npm --version)"
8389
- name: Enable Corepack
8490
run: corepack enable
8591
- name: Install dependencies

0 commit comments

Comments
 (0)