Skip to content

Commit fe6723b

Browse files
committed
ci: fix nodejs pnpm install cmd
Signed-off-by: peefy <[email protected]>
1 parent 92de3e8 commit fe6723b

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/nodejs-test.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,8 @@ jobs:
4646
cache: pnpm
4747
cache-dependency-path: "nodejs/pnpm-lock.yaml"
4848

49-
- name: Corepack
50-
run: corepack enable
51-
5249
- name: Install dependencies
53-
run: pnpm install
50+
run: pnpm install --no-save --frozen-lockfile
5451

5552
- name: Check format
5653
run: pnpm exec prettier --check .
@@ -113,10 +110,8 @@ jobs:
113110
node-version: '18'
114111
cache: pnpm
115112
cache-dependency-path: "nodejs/pnpm-lock.yaml"
116-
- name: Corepack
117-
run: corepack enable
118113
- name: Install dependencies
119-
run: pnpm install --frozen-lockfile
114+
run: pnpm install --no-save --frozen-lockfile
120115
- name: Build
121116
shell: bash
122117
working-directory: .
@@ -156,10 +151,8 @@ jobs:
156151
node-version: '18'
157152
cache: pnpm
158153
cache-dependency-path: "nodejs/pnpm-lock.yaml"
159-
- name: Corepack
160-
run: corepack enable
161154
- name: Install dependencies
162-
run: pnpm install --frozen-lockfile
155+
run: pnpm install --no-save --frozen-lockfile
163156
- name: Build
164157
shell: bash
165158
run: ${{ matrix.settings.build }}
@@ -208,10 +201,8 @@ jobs:
208201
node-version: '18'
209202
cache: pnpm
210203
cache-dependency-path: "nodejs/pnpm-lock.yaml"
211-
- name: Corepack
212-
run: corepack enable
213204
- name: Install dependencies
214-
run: pnpm install --frozen-lockfile
205+
run: pnpm install --no-save --frozen-lockfile
215206
- name: Build
216207
run: ${{ matrix.settings.build }}
217208
shell: bash
@@ -243,10 +234,9 @@ jobs:
243234
node-version: "18"
244235
cache: pnpm
245236
cache-dependency-path: "nodejs/pnpm-lock.yaml"
246-
- name: Corepack
247-
run: corepack enable
237+
248238
- name: Install dependencies
249-
run: pnpm install --frozen-lockfile
239+
run: pnpm install --no-save --frozen-lockfile
250240

251241
- name: Download all artifacts
252242
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)