fix(repo): fix publish scripts use of pnpm (#16566)

This commit is contained in:
Jason Jean 2023-04-25 19:48:53 -04:00 committed by GitHub
parent 1ce2720d24
commit d22b03756a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 15 deletions

View File

@ -13,7 +13,7 @@
"forwardPorts": [4211],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",
"postCreateCommand": "pnpm install",
"customizations": {
"vscode": {
"extensions": ["nrwl.angular-console"]

View File

@ -17,7 +17,7 @@ jobs:
build: |
pnpm nx -- run-many --target=build-native -- --target=x86_64-apple-darwin
- host: windows-latest
build: pnpm nx -- run-many --target=build-native -- --target=x86_64-pc-windows-msvc
build: pnpm nx run-many --target=build-native -- --target=x86_64-pc-windows-msvc
target: x86_64-pc-windows-msvc
# Windows 32bit (not needed)
# - host: windows-latest
@ -30,7 +30,7 @@ jobs:
build: |-
set -e &&
pnpm --version &&
pnpm nx -- run-many --target=build-native -- --target=x86_64-unknown-linux-gnu
pnpm nx run-many --target=build-native -- --target=x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
@ -43,40 +43,40 @@ jobs:
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
pnpm nx -- run-many --target=build-native -- --target=aarch64-apple-darwin
pnpm nx run-many --target=build-native -- --target=aarch64-apple-darwin
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: |-
set -e &&
pnpm --version &&
pnpm nx -- run-many --target=build-native -- --target=aarch64-unknown-linux-gnu
pnpm nx run-many --target=build-native -- --target=aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
build: |
pnpm nx -- run-many --target=build-native -- --target=armv7-unknown-linux-gnueabihf
pnpm nx run-many --target=build-native -- --target=armv7-unknown-linux-gnueabihf
# Android (not needed)
# - host: ubuntu-latest
# target: aarch64-linux-android
# build: |
# pnpm nx -- run-many --target=build-native -- --target=aarch64-linux-android
# pnpm nx run-many --target=build-native -- --target=aarch64-linux-android
# - host: ubuntu-latest
# target: armv7-linux-androideabi
# build: |
# pnpm nx -- run-many --target=build-native -- --target=armv7-linux-androideabi
# pnpm nx run-many --target=build-native -- --target=armv7-linux-androideabi
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
build: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
pnpm nx -- run-many --target=build-native -- --target=aarch64-unknown-linux-musl
pnpm nx run-many --target=build-native -- --target=aarch64-unknown-linux-musl
- host: windows-latest
target: aarch64-pc-windows-msvc
build: pnpm nx -- run-many --target=build-native -- --target=aarch64-pc-windows-msvc
build: pnpm nx run-many --target=build-native -- --target=aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@18
runs-on: ${{ matrix.settings.host }}
steps:

View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh
yarn check-lock-files &&
yarn check-commit &&
yarn documentation &&
yarn pretty-quick --check
pnpm check-lock-files &&
pnpm check-commit &&
pnpm documentation &&
pnpm pretty-quick --check

View File

@ -5,7 +5,7 @@
/scripts/**/* @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
/tools/**/* @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
package.json @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
yarn.lock @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
pnpm-lock.yaml @FrozenPandaz @vsavkin @AgentEnder @jaysoo @JamesHenry
# Docs Site + Graph
/docs @bcabanes @isaacplmann @juristr