diff --git a/.github/workflows/peer-api.yaml b/.github/workflows/peer-api.yaml index 6067d2fd5ad..44a1a9f340b 100644 --- a/.github/workflows/peer-api.yaml +++ b/.github/workflows/peer-api.yaml @@ -15,11 +15,8 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install lerna - run: npm install -g lerna@5.5.2 - - name: Install script dependencies run: npm install - name: Check API dependency semantics - run: lerna exec "node \$LERNA_ROOT_PATH/scripts/peer-api-check.js" + run: npx lerna exec "node \$LERNA_ROOT_PATH/scripts/peer-api-check.js" diff --git a/.github/workflows/test-all-versions.yml b/.github/workflows/test-all-versions.yml index bc0b6119329..f272f039a54 100644 --- a/.github/workflows/test-all-versions.yml +++ b/.github/workflows/test-all-versions.yml @@ -146,6 +146,6 @@ jobs: - name: Install Root Dependencies run: npm install --ignore-scripts - name: Bootstrap Dependencies - run: lerna bootstrap --no-ci --hoist --nohoist='zone.js' --nohoist='mocha' --nohoist='ts-mocha' + run: npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --nohoist='mocha' --nohoist='ts-mocha' - name: Run test-all-versions - run: lerna run test-all-versions ${{ inputs.lerna-args }} ${{ matrix.lerna-extra-args }} --stream --concurrency 1 + run: npx lerna run test-all-versions ${{ inputs.lerna-args }} ${{ matrix.lerna-extra-args }} --stream --concurrency 1 diff --git a/scripts/check-release-please.mjs b/scripts/check-release-please.mjs index 0496533bcc5..699133c35d8 100644 --- a/scripts/check-release-please.mjs +++ b/scripts/check-release-please.mjs @@ -30,7 +30,7 @@ const getProcessOutput = (cmd, args) => { } const lernaList = JSON.parse( - getProcessOutput('lerna', ['list', '--json']) + getProcessOutput('npx', ['lerna', 'list', '--json']) ); const manifest = readJson('.release-please-manifest.json'); const config = readJson('release-please-config.json'); diff --git a/scripts/parse-lerna-scopes.mjs b/scripts/parse-lerna-scopes.mjs index af66a5af1d6..53a10dbd764 100644 --- a/scripts/parse-lerna-scopes.mjs +++ b/scripts/parse-lerna-scopes.mjs @@ -14,7 +14,7 @@ import { readFileSync } from 'fs'; const labels = JSON.parse(process.argv[2]); const lernaList = JSON.parse( - childProcess.spawnSync('lerna', ['list', '--json']).stdout + childProcess.spawnSync('npx', ['lerna', 'list', '--json']).stdout .toString('utf8') ); const packageList = new Map(