chore: replace call to lerna in workflow with npm script
MODIFY
.github/workflows/node.js.yml
.github/workflows/node.js.yml
@@ -19,8 +19,8 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- - run: lerna run --scope=appium install-fake-driver
- run: npm test
+ - run: npm run install-fake-driver
- run: npm run e2e-test
generate_docs:

MODIFY
package.json
package.json
"generate-docs": "lerna run generate-docs --scope appium",
"postinstall": "lerna bootstrap && lerna exec gulp prepublish",
"lint": "lerna exec --parallel gulp lint && lerna run lint --scope @appium/eslint-config-appium",
+ "install-fake-driver": "lerna run --scope=appium install-fake-driver",
"lint:fix": "lerna exec --parallel gulp lint -- --fix",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0",
"precommit-test": "REPORTER=dot gulp -f packages/appium/gulpfile.js once",

chore: replace call to lerna in workflow with npm script