Skip to content

Commit 10fc21f

Browse files
authored
chore: ensure npm@11 is installed for OIDC publishing
Signed-off-by: Luke Karrys <[email protected]>
1 parent 25167af commit 10fc21f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish-packages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,17 @@ jobs:
108108
- name: Set up pnpm
109109
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
110110

111-
- name: Setup Node.js
111+
- name: Set up Node.js
112112
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
113113
with:
114114
# Don't use caching here as we never install dependencies in this workflow
115115
node-version-file: '.nvmrc'
116116
registry-url: 'https://registry.npmjs.org'
117117

118+
- name: Setup npm
119+
# OIDC requires npm >=11.5.1. pnpm will use the installed version of npm for publishing
120+
run: npm install -g npm@11
121+
118122
- name: Publish
119123
working-directory: packages/${{ matrix.package }}
120124
run: |

0 commit comments

Comments
 (0)