Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

CI was failing on dependency installation because the workflow used npm, but package.json dependencies use workspace:* protocol (pnpm-only).

Workflow changes:

  • Enable Corepack and switch package manager to pnpm
  • Update all install/script commands: npm cipnpm install --frozen-lockfile

Workspace config:

  • Add pnpm-workspace.yaml defining workspace packages
  • Generate pnpm-lock.yaml for reproducible installs

TypeScript fixes:
Pre-existing type errors surfaced once deps installed successfully:

  • Remove unused imports
  • Add nullish coalescing for optional classification.confidence
  • Fix type narrowing for label arrays with filter predicates
  • Prefix unused callback parameters with _

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@kayodebristol
Copy link
Contributor

This PR is currently Draft.

Minimal next steps:

  • Mark as Ready for review when safe
  • Ensure CI is green
  • Request review / address feedback

Once checks are green + required reviews are satisfied, we can squash merge.

- Enable Corepack and configure pnpm in CI workflow
- Add pnpm-workspace.yaml for workspace configuration
- Generate pnpm-lock.yaml for dependency locking
- Update all workflow commands to use pnpm instead of npm
- Fix TypeScript errors that surfaced after fixing dependencies:
  - Remove unused 'path' import in conversations.ts
  - Add nullish coalescing for optional confidence field
  - Fix type filtering for labels array
  - Prefix unused parameters with underscore
  - Add explicit boolean type conversions

Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copilot AI changed the title [WIP] Update actions/upload-artifact from version 4 to 6 Fix CI: migrate npm to pnpm for workspace:* protocol support Feb 3, 2026
Copilot AI requested a review from kayodebristol February 3, 2026 18:11
@kayodebristol
Copy link
Contributor

Closing as superseded by #155 (single consolidated fix for the Node 18/20 CI + workspace:* issue). If we need to resurrect any approach from this PR, we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants