Skip to content

Commit d4b1e22

Browse files
committed
use latest npm
1 parent 7d63647 commit d4b1e22

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/actions/npm-publish/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ runs:
103103
npm config list
104104
echo "ACTIONS_ID_TOKEN_REQUEST_URL: ${ACTIONS_ID_TOKEN_REQUEST_URL:-not set}"
105105
echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:+is set}"
106-
106+
107107
- name: Publish to npm (with OIDC trusted publishing)
108108
if: steps.check-exists.outputs.exists == 'false'
109109
shell: bash

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
node-version: '20'
6161
registry-url: 'https://registry.npmjs.org'
6262

63+
# Ensure npm 11.5.1 or later for trusted publishing
64+
- run: npm install -g npm@latest
65+
6366
- name: Detect trigger type
6467
id: detect
6568
run: |

0 commit comments

Comments
 (0)