Skip to content

Fix CI/CD: pnpm setup ordering and missing lockfile - #15

Draft
mesayanroy with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-cd-issue
Draft

Fix CI/CD: pnpm setup ordering and missing lockfile#15
mesayanroy with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-cd-issue

Conversation

Copilot AI commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

CI was failing immediately because setup-node@v4 (with cache: 'pnpm') ran before pnpm/action-setup@v4, so pnpm wasn't on PATH when Node tried to enable caching. Additionally, pnpm-lock.yaml was in .gitignore while the workflow used --frozen-lockfile, making install impossible even if pnpm were found.

Changes

  • CI workflow (ci.yml): Swap step order — pnpm/action-setup@v4 now runs before setup-node@v4 in both lint-and-type-check and build jobs
  • .gitignore: Remove pnpm-lock.yaml exclusion
  • pnpm-lock.yaml: Generate and commit lockfile so --frozen-lockfile has something to work with
# Before (broken)
- uses: actions/setup-node@v4   # tries to find pnpm — fails
- uses: pnpm/action-setup@v4    # too late

# After (fixed)
- uses: pnpm/action-setup@v4    # installs pnpm first
- uses: actions/setup-node@v4   # pnpm is now available for cache setup

@vercel

vercel Bot commented Mar 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
0x402-pubsub Ready Ready Preview, Comment Mar 31, 2026 3:53pm

Copilot AI changed the title [WIP] Fix CI/CD issues and enable deployment Fix CI/CD: pnpm setup ordering and missing lockfile Mar 31, 2026
Copilot AI requested a review from mesayanroy March 31, 2026 15:54
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