Skip to content

Commit 5ded713

Browse files
authored
fix(repo): set version of pnpm for docker publishes (#23129)
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> The version of pnpm changed with the docker image. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> The version of pnpm is installed over the one in the docker image to ensure the right version is being used. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
1 parent 02a8602 commit 5ded713

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish.yml

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
3737
build: |-
3838
set -e &&
39+
npm i -g [email protected] --force &&
3940
pnpm --version &&
4041
pnpm install --frozen-lockfile &&
4142
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-gnu
@@ -44,6 +45,8 @@ jobs:
4445
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
4546
build: |-
4647
set -e &&
48+
npm i -g [email protected] --force &&
49+
pnpm --version &&
4750
pnpm install --frozen-lockfile &&
4851
pnpm nx run-many --verbose --target=build-native -- --target=x86_64-unknown-linux-musl
4952
- host: macos-13
@@ -60,6 +63,7 @@ jobs:
6063
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
6164
build: |-
6265
set -e &&
66+
npm i -g [email protected] --force &&
6367
pnpm --version &&
6468
pnpm install --frozen-lockfile &&
6569
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-gnu
@@ -85,6 +89,8 @@ jobs:
8589
build: |-
8690
set -e &&
8791
rustup target add aarch64-unknown-linux-musl &&
92+
npm i -g [email protected] --force &&
93+
pnpm --version &&
8894
pnpm install --frozen-lockfile &&
8995
pnpm nx run-many --verbose --target=build-native -- --target=aarch64-unknown-linux-musl
9096
- host: windows-latest

0 commit comments

Comments
 (0)