Skip to content

Commit 6c71f20

Browse files
committed
Change corepack to npm i
1 parent 23ceba9 commit 6c71f20

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/actions/build/action.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ runs:
1717
cache: pnpm
1818

1919
- shell: bash
20-
run: corepack enable && corepack prepare pnpm@latest --activate
20+
run: |
21+
npm i -g pnpm
22+
pnpm --version # Verify installation
2123
2224
- shell: bash
2325
run: pnpm install

.github/actions/npm-publish/action.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ runs:
2626
cache: 'pnpm'
2727
registry-url: 'https://registry.npmjs.org'
2828

29-
- name: Enable pnpm
29+
- name: Install pnpm
3030
shell: bash
31-
run: corepack enable && corepack prepare pnpm@latest --activate
31+
run: |
32+
npm i -g pnpm
33+
pnpm --version # Verify installation
3234
3335
- name: Install dependencies
3436
shell: bash

.github/workflows/test.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,23 @@ jobs:
6060
steps:
6161
- uses: actions/checkout@v4
6262

63-
- name: Setup Node and pnpm
63+
- name: Setup Node.js
6464
uses: actions/setup-node@v4
6565
with:
6666
node-version: ${{ matrix.node }}
67-
cache: 'pnpm'
6867

6968
- name: Install pnpm
7069
shell: bash
7170
run: |
7271
npm i -g pnpm
7372
pnpm --version # Verify installation
7473
74+
- name: Setup pnpm cache
75+
uses: actions/setup-node@v4
76+
with:
77+
node-version: ${{ matrix.node }}
78+
cache: 'pnpm'
79+
7580
- name: Restore build artifacts
7681
uses: actions/cache/restore@v4
7782
with:
@@ -95,18 +100,23 @@ jobs:
95100
steps:
96101
- uses: actions/checkout@v4
97102

98-
- name: Setup Node and pnpm
103+
- name: Setup Node.js
99104
uses: actions/setup-node@v4
100105
with:
101106
node-version: ${{ matrix.node }}
102-
cache: 'pnpm'
103107

104108
- name: Install pnpm
105109
shell: bash
106110
run: |
107111
npm i -g pnpm
108112
pnpm --version # Verify installation
109113
114+
- name: Setup pnpm cache
115+
uses: actions/setup-node@v4
116+
with:
117+
node-version: ${{ matrix.node }}
118+
cache: 'pnpm'
119+
110120
- name: Restore build artifacts
111121
uses: actions/cache/restore@v4
112122
with:

0 commit comments

Comments
 (0)