Skip to content

Commit 7161b80

Browse files
committed
fix(ci): use pnpm --filter to run scripts in monorepo context
Remove working-directory parameter and use explicit pnpm --filter commands to ensure scripts are executed in the correct package. This fixes the 'Missing script: test:unit' error by properly targeting the CLI package in the monorepo structure.
1 parent b39cfff commit 7161b80

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ jobs:
4040
name: Run CI Pipeline
4141
uses: SocketDev/socket-registry/.github/workflows/ci.yml@d8ff3b0581d799466cfbf150f715c1a4bf9f84a5 # 2025-10-23
4242
with:
43-
working-directory: 'packages/cli'
44-
test-setup-script: 'rm -rf node_modules/.vite && pnpm run build'
45-
lint-script: 'pnpm run check'
46-
type-check-script: 'pnpm run type'
47-
test-script: ${{ inputs.skip-tests && 'echo "Tests skipped"' || 'pnpm run test:unit' }}
43+
test-setup-script: 'cd packages/cli && rm -rf node_modules/.vite && pnpm run build'
44+
lint-script: 'pnpm --filter @socketsecurity/cli run check'
45+
type-check-script: 'pnpm --filter @socketsecurity/cli run type'
46+
test-script: ${{ inputs.skip-tests && 'echo "Tests skipped"' || 'pnpm --filter @socketsecurity/cli run test:unit' }}
4847
node-versions: ${{ inputs.node-versions || '[20, 22, 24]' }}
4948
os-versions: '["ubuntu-latest", "macos-latest", "windows-latest"]'
5049
fail-fast: false

0 commit comments

Comments
 (0)