Skip to content

Commit 4c26deb

Browse files
committed
fix: correct pnpm installation order in release workflows
- Install pnpm before setting up Node.js cache - Skip npm publishing for now (no NPM_TOKEN configured) - Fixes workflow failures on tag pushes
1 parent ff1a0b6 commit 4c26deb

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/marketplace-release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v2
31+
with:
32+
version: 8
33+
2934
- name: Setup Node.js
3035
uses: actions/setup-node@v4
3136
with:
3237
node-version: '24'
3338
registry-url: 'https://registry.npmjs.org'
3439
cache: 'pnpm'
3540

36-
- name: Install pnpm
37-
uses: pnpm/action-setup@v2
38-
with:
39-
version: 8
40-
4141
- name: Install dependencies
4242
run: pnpm install --frozen-lockfile
4343

@@ -51,6 +51,7 @@ jobs:
5151
run: pnpm run build:action
5252

5353
- name: Publish to npm
54+
if: false # Skip npm publishing for now
5455
run: npm publish
5556
env:
5657
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: 8
25+
2126
- name: Setup Node.js
2227
uses: actions/setup-node@v4
2328
with:
2429
node-version: '24'
2530
registry-url: 'https://registry.npmjs.org'
2631
cache: 'pnpm'
2732

28-
- name: Install pnpm
29-
uses: pnpm/action-setup@v2
30-
with:
31-
version: 8
32-
3333
- name: Install dependencies
3434
run: pnpm install --frozen-lockfile
3535

@@ -40,6 +40,7 @@ jobs:
4040
run: pnpm run build
4141

4242
- name: Publish to npm
43+
if: false # Skip npm publishing for now
4344
run: npm publish
4445
env:
4546
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)