Skip to content

Commit 2bdfb34

Browse files
committed
fix pnpm setup
1 parent 3bd2b45 commit 2bdfb34

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/linux-prebuild.yml .github/workflows/prebuild-linux.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- "test/**"
1111
- "typings/**"
1212
- "package.json"
13-
- ".github/workflows/linux-prebuild.yml"
13+
- ".github/workflows/prebuild-linux.yml"
1414
pull_request:
1515
branches: [ "master" ]
1616
paths:
@@ -20,7 +20,7 @@ on:
2020
- "test/**"
2121
- "typings/**"
2222
- "package.json"
23-
- ".github/workflows/linux-prebuild.yml"
23+
- ".github/workflows/prebuild-linux.yml"
2424

2525
env:
2626
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
@@ -41,17 +41,25 @@ jobs:
4141
- 20
4242

4343
steps:
44-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4545
- name: Install OpenCV ${{ matrix.opencv_version }}
4646
run: |
4747
sudo apt update
4848
sudo apt install libopencv-dev
4949
50-
- uses: actions/setup-node@v4
50+
- name: Install Node.js ${{ matrix.node_version }}
51+
uses: actions/setup-node@v4
5152
with:
5253
node-version: ${{ matrix.node_version }}
53-
cache: 'pnpm'
5454

55+
- uses: pnpm/action-setup@v3
56+
name: Install pnpm
57+
with:
58+
version: 8
59+
run_install: |
60+
- recursive: true
61+
args: [--frozen-lockfile, --strict-peer-dependencies]
62+
5563
- name: pnpm run prepack
5664
run: pnpm run prepack
5765

0 commit comments

Comments
 (0)