Skip to content

Commit

Permalink
ci: remove @lerna-lite/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 18, 2025
1 parent 0291008 commit 43dfec7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/get-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const packagesPath = join(__dirname, '../../packages')

for (const packagePath of await readdir(packagesPath)) {
const pkg = join(packagesPath, packagePath, 'package.json')
const { name } = JSON.parse(await readFile(pkg))
packages.push(name)
const { name, scripts } = JSON.parse(await readFile(pkg))
if (scripts && scripts.test && scripts.test !== 'exit 0') {
packages.push(name)
}
}

console.log(`{"package":${JSON.stringify(packages)}}`)
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
version: latest
run_install: true
- name: Test
run: pnpm run test --scope "${{ matrix.package }}"
run: pnpm --filter "${{ matrix.package }}" exec c8 pnpm test
env:
PROXY_USERNAME: ${{ secrets.PROXY_USERNAME }}
PROXY_PASSWORD: ${{ secrets.PROXY_PASSWORD }}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"@commitlint/config-conventional": "latest",
"@ksmithut/prettier-standard": "latest",
"@lerna-lite/cli": "latest",
"@lerna-lite/exec": "latest",
"@lerna-lite/publish": "latest",
"browser-sync": "latest",
"c8": "latest",
Expand All @@ -115,7 +114,7 @@
},
"scripts": {
"build": "gulp build",
"clean": "pnpm -r exec -- rm -rf node_modules",
"clean": "pnpm --recursive exec -- rm -rf node_modules",
"contributors": "pnpm run contributors:add && pnpm run contributors:commit",
"contributors:add": "pnpm --recursive --parallel exec -- finepack",
"contributors:commit": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
Expand All @@ -127,7 +126,7 @@
"prerelease": "pnpm run update:check",
"pretest": "pnpm run lint",
"release": "lerna publish --yes --sort --conventional-commits -m \"chore(release): %s\" --create-release github",
"test": "c8 lerna exec pnpm run test",
"test": "c8 pnpm --recursive --sequential test",
"update": "pnpm --recursive --parallel exec ncu -u",
"update:check": "pnpm --recursive --parallel exec ncu -errorLevel 2"
},
Expand Down

0 comments on commit 43dfec7

Please sign in to comment.