Skip to content

Commit 90169b5

Browse files
committed
[CI] Fix sudo issues when installing npm before installing node
1 parent 9f2028a commit 90169b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-on-npm.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
- name: Extract version from tag
2626
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
2727

28-
# npm 11.5.1 or later is required for OIDC
29-
- run: npm install -g npm@latest
30-
3128
- run: npm i -g corepack && corepack enable
3229
- uses: actions/setup-node@v4
3330
with:
@@ -39,6 +36,9 @@ jobs:
3936
package.json
4037
src/**/package.json
4138
39+
# npm 11.5.1 or later is required for OIDC
40+
- run: npm install -g npm@latest
41+
4242
- name: Install root JS dependencies
4343
run: pnpm install --frozen-lockfile
4444

0 commit comments

Comments
 (0)