Skip to content

Commit 27b664d

Browse files
committed
fix(ci): use consistent pnpm --filter pattern in test setup
Update test-setup-script to use 'pnpm --filter' pattern instead of 'cd' for consistency with other script commands. This ensures all commands run from the repository root using the filter flag, which is the proper way to target packages in a pnpm monorepo.
1 parent a810751 commit 27b664d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Run CI Pipeline
4141
uses: SocketDev/socket-registry/.github/workflows/ci.yml@d8ff3b0581d799466cfbf150f715c1a4bf9f84a5 # 2025-10-23
4242
with:
43-
test-setup-script: 'cd packages/cli && rm -rf node_modules/.vite && pnpm run build'
43+
test-setup-script: 'rm -rf packages/cli/node_modules/.vite && pnpm --filter @socketsecurity/cli run build'
4444
lint-script: 'pnpm --filter @socketsecurity/cli run check'
4545
type-check-script: 'pnpm --filter @socketsecurity/cli run type'
4646
test-script: ${{ inputs.skip-tests && 'echo "Tests skipped"' || 'pnpm --filter @socketsecurity/cli run test:unit' }}

0 commit comments

Comments
 (0)