Skip to content

Commit

Permalink
fix(ci): use npx to run lerna (open-telemetry#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Jun 22, 2023
1 parent 856c252 commit 4514522
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/peer-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions .github/workflows/test-all-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/check-release-please.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse-lerna-scopes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4514522

Please sign in to comment.