Skip to content

Commit 4e317ce

Browse files
ci: install corepack in docker (#920)
1 parent 026dfbf commit 4e317ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-napi.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
- host: ubuntu-latest
4141
target: x86_64-unknown-linux-gnu
4242
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
43-
build: cd node && pnpm build --target x86_64-unknown-linux-gnu
43+
build: |
44+
npm i -g --force corepack
45+
corepack enable
46+
cd node
47+
pnpm build --target x86_64-unknown-linux-gnu
4448
- host: ubuntu-latest
4549
target: x86_64-unknown-linux-musl
4650
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
@@ -51,7 +55,11 @@ jobs:
5155
- host: ubuntu-latest
5256
target: aarch64-unknown-linux-gnu
5357
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
54-
build: cd node && pnpm build --target aarch64-unknown-linux-gnu
58+
build: |
59+
npm i -g --force corepack
60+
corepack enable
61+
cd node
62+
pnpm build --target aarch64-unknown-linux-gnu
5563
- host: ubuntu-latest
5664
target: armv7-unknown-linux-gnueabihf
5765
setup: |

0 commit comments

Comments
 (0)