Skip to content

Conversation

@Thunder-Blaze
Copy link
Contributor

@Thunder-Blaze Thunder-Blaze commented Sep 6, 2025

Description

Checkout

  • I have read all the contributor guidelines for the repo.

Summary by CodeRabbit

  • Chores
    • CI updated to use Node.js 22 for lint and build workflows.
    • Adopted pnpm v8 via official action in both lint and build jobs.
    • Removed previous global pnpm installation step.
    • Workflow steps for installing dependencies, running ESLint, and building remain the same.

@vercel
Copy link

vercel bot commented Sep 6, 2025

@Thunder-Blaze is attempting to deploy a commit to the mrimmortal09's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Sep 6, 2025

Walkthrough

CI workflow updated to use pnpm/action-setup@v4 (pnpm v8), upgraded Node.js version to 22, and removed global pnpm installation. Step order adjusted to install pnpm action before Node setup in both lint and build jobs. Other steps unchanged.

Changes

Cohort / File(s) Summary
CI workflow updates
.github/workflows/verify.yml
- Add pnpm/action-setup@v4 (version: 8) before Node setup in lint/build jobs
- Bump actions/setup-node from Node 18 to 22
- Remove npm install -g pnpm step
- Keep install, lint, and build steps unchanged

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant GH as GitHub Actions
  participant JobLint as Job: lint
  participant JobBuild as Job: build
  Note over GH: verify.yml pipeline (modified)

  par Lint Job
    GH->>JobLint: Checkout
    JobLint->>JobLint: Setup pnpm (pnpm/action-setup@v4, v8)
    JobLint->>JobLint: Setup Node (actions/setup-node, v22)
    JobLint->>JobLint: pnpm install
    JobLint->>JobLint: pnpm eslint
  and Build Job
    GH->>JobBuild: Checkout
    JobBuild->>JobBuild: Setup pnpm (pnpm/action-setup@v4, v8)
    JobBuild->>JobBuild: Setup Node (actions/setup-node, v22)
    JobBuild->>JobBuild: pnpm install
    JobBuild->>JobBuild: pnpm build
  end

  Note over JobLint,JobBuild: Removed global `npm install -g pnpm`
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
.github/workflows/verify.yml (1)

50-55: Same Node version guidance as lint job.

Mirror the 'lts/*' (or '22.x') recommendation here; ensure cache: 'pnpm' remains.

-          node-version: 22
+          node-version: 'lts/*'
🧹 Nitpick comments (1)
.github/workflows/verify.yml (1)

45-49: Duplicate setup across jobs; consider a reusable step.

Factor Node+pnpm setup into a reusable workflow/composite action to keep both jobs in sync. Also apply the same --frozen-lockfile install flags here.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6aa1691 and b41ab79.

📒 Files selected for processing (1)
  • .github/workflows/verify.yml (2 hunks)

Comment on lines +19 to +23
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Align pnpm version with repo; consider Corepack.

  • If package.json defines "packageManager": "pnpm@x", prefer Corepack and drop explicit version to avoid drift; else ensure v8 matches lockfile. Also OK to keep as-is if the repo is pinned to pnpm 8.

Run to verify/package alignment:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "packageManager in package.json (if any):"
jq -r '.packageManager // "UNSET"' package.json 2>/dev/null || echo "No package.json"

echo "pnpm lockfile version (if any):"
rg -n '^lockfileVersion:\s*\K.*' pnpm-lock.yaml || echo "No pnpm-lock.yaml"

echo "engines.node in package.json (if any):"
jq -r '.engines.node // "UNSET"' package.json 2>/dev/null || true

Length of output: 586


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Searching for package.json:"
find . -maxdepth 2 -type f -name 'package.json' -print || echo "None found"

echo "Searching for pnpm lockfile(s):"
find . -maxdepth 2 -type f -name 'pnpm-lock.*' -print || echo "None found"

if [ -f pnpm-lock.yaml ]; then
  echo "lockfileVersion in pnpm-lock.yaml:"
  grep -n '^lockfileVersion:' pnpm-lock.yaml
fi

Length of output: 477


Align pnpm version with lockfileVersion

  • The lockfile (pnpm-lock.yaml) specifies lockfileVersion: '9.0', so update the pnpm/action-setup step in .github/workflows/verify.yml to install version: 9 instead of 8.
  • Optionally, add "packageManager": "pnpm@9" to package.json and drop the explicit version in favor of Corepack.
🤖 Prompt for AI Agents
.github/workflows/verify.yml lines 19-23: the workflow installs pnpm v8 but the
repository lockfile specifies lockfileVersion 9. Update the pnpm/action-setup
step to use version: 9 to match the lockfile; optionally add "packageManager":
"pnpm@9" to package.json and remove the explicit version to rely on Corepack.

Comment on lines 24 to 29
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: 'pnpm'

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Use LTS selector or pin minor explicitly; freeze installs.

  • If policy is “track LTS”, prefer node-version: 'lts/*'. If you need pinning, use '22.x'.
  • Add pnpm install flags for CI determinism.

Apply:

-          node-version: 22
+          node-version: 'lts/*'

And update the install step (reference):

- run: pnpm install
+ run: pnpm install --frozen-lockfile --prefer-offline
🤖 Prompt for AI Agents
.github/workflows/verify.yml lines 24-29: the workflow currently pins Node to
"22" and runs pnpm install without deterministic flags; update node-version to
either "lts/*" when tracking LTS or "22.x" to pin minor explicitly, and modify
the install step to run pnpm install with CI-safe flags: add --frozen-lockfile
--prefer-offline to ensure reproducible, cached installs in CI.

@MrImmortal09 MrImmortal09 force-pushed the main branch 2 times, most recently from 0d218de to a1d8e6b Compare December 1, 2025 18:52
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