Skip to content

Commit 8fd4218

Browse files
Merge pull request #79 from muhammedaksam:develop
Move npm update step before pnpm installation in publish workflow
2 parents 79224c8 + b1d00a5 commit 8fd4218

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish-trusted.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
package-manager-cache: false
2626
registry-url: 'https://registry.npmjs.org'
2727

28+
# Ensure npm 11.5.1 or later is installed for trusted publishing support
29+
# Must run BEFORE pnpm global install to avoid corrupting npm's module tree
30+
- name: Update npm to latest version
31+
run: npm install -g npm@latest
32+
2833
- name: Install pnpm
2934
run: |
3035
npm install -g pnpm@10.23.0
@@ -42,10 +47,6 @@ jobs:
4247
restore-keys: |
4348
${{ runner.os }}-pnpm-store-
4449
45-
# Ensure npm 11.5.1 or later is installed for trusted publishing support
46-
- name: Update npm to latest version
47-
run: npm install -g npm@latest
48-
4950
- name: Install dependencies
5051
run: pnpm install --frozen-lockfile
5152

0 commit comments

Comments
 (0)