Skip to content

Commit 6ce599d

Browse files
committed
ci(npm): print npm version to diagnose OIDC publish
1 parent c3b6e38 commit 6ce599d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
# OIDC trusted publishing (tokenless) requires npm >= 11.5.1.
3030
# Node 22 (lts/jod) ships npm 10, so upgrade explicitly.
3131
- name: Upgrade npm for trusted publishing
32-
run: npm install -g npm@latest
32+
run: |
33+
npm install -g npm@latest
34+
echo "npm version after upgrade: $(npm -v)"
3335
3436
- name: Build bashunit single-file binary
3537
shell: bash
@@ -44,4 +46,6 @@ jobs:
4446
# Configure the trusted publisher once at npmjs.com -> bashunit -> Settings.
4547
# Provenance is generated automatically.
4648
- name: Publish to npm
47-
run: npm publish --access public
49+
run: |
50+
echo "publishing with npm $(npm -v)"
51+
npm publish --access public

0 commit comments

Comments
 (0)