2 parents 79224c8 + b1d00a5 commit 8fd4218Copy full SHA for 8fd4218
1 file changed
.github/workflows/publish-trusted.yml
@@ -25,6 +25,11 @@ jobs:
25
package-manager-cache: false
26
registry-url: 'https://registry.npmjs.org'
27
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
+
33
- name: Install pnpm
34
run: |
35
npm install -g pnpm@10.23.0
@@ -42,10 +47,6 @@ jobs:
42
47
restore-keys: |
43
48
${{ runner.os }}-pnpm-store-
44
49
45
- # Ensure npm 11.5.1 or later is installed for trusted publishing support
46
- - name: Update npm to latest version
- run: npm install -g npm@latest
-
50
- name: Install dependencies
51
run: pnpm install --frozen-lockfile
52
0 commit comments