Skip to content

Commit c50f624

Browse files
committed
ci: setup pnpm before node cache
1 parent 1fbd006 commit c50f624

3 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10.33.2
28+
run_install: false
29+
2430
- name: Setup Node.js
2531
uses: actions/setup-node@v4
2632
with:
2733
node-version: "24"
2834
cache: "pnpm"
2935

30-
- name: Enable pnpm
31-
run: corepack enable
32-
3336
- name: Install dependencies
3437
run: pnpm install --frozen-lockfile
3538

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,19 @@ jobs:
3333
exit 1
3434
fi
3535
36+
- name: Setup pnpm
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 10.33.2
40+
run_install: false
41+
3642
- name: Setup Node.js
3743
uses: actions/setup-node@v4
3844
with:
3945
node-version: "24"
4046
cache: "pnpm"
4147
registry-url: "https://registry.npmjs.org"
4248

43-
- name: Enable pnpm
44-
run: corepack enable
45-
4649
- name: Install dependencies
4750
run: pnpm install --frozen-lockfile
4851

@@ -101,4 +104,3 @@ jobs:
101104
--title "@spencer-kit/coder-studio ${{ steps.release.outputs.version }}" \
102105
--generate-notes \
103106
--verify-tag
104-

.github/workflows/release-pr.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,18 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525

26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 10.33.2
30+
run_install: false
31+
2632
- name: Setup Node.js
2733
uses: actions/setup-node@v4
2834
with:
2935
node-version: "24"
3036
cache: "pnpm"
3137

32-
- name: Enable pnpm
33-
run: corepack enable
34-
3538
- name: Install dependencies
3639
run: pnpm install --frozen-lockfile
3740

@@ -46,4 +49,3 @@ jobs:
4649
title: "release: version packages"
4750
env:
4851
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-

0 commit comments

Comments
 (0)