Skip to content

Commit 009d33d

Browse files
committed
fix(publish-npm): install npm with sudo
1 parent 295fc8b commit 009d33d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish-npm-simulation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
# Ensure npm 11.5.1 or later for trusted publishing
3232
- name: Install latest npm
33-
run: npm install -g npm@latest
33+
run: sudo npm install -g npm@latest
3434

3535
- name: Publish (dry-run)
3636
working-directory: ./pkg

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Ensure npm 11.5.1 or later for trusted publishing
3535
- name: Install latest npm
36-
run: npm install -g npm@latest
36+
run: sudo npm install -g npm@latest
3737

3838
- name: Publish
3939
working-directory: ./pkg

0 commit comments

Comments
 (0)