Skip to content

chore: optimize CI pnpm setup#52

Merged
chenjiahan merged 1 commit into
masterfrom
codex/optimize-ci-pnpm-action-20260609
Jun 10, 2026
Merged

chore: optimize CI pnpm setup#52
chenjiahan merged 1 commit into
masterfrom
codex/optimize-ci-pnpm-action-20260609

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR aligns the GitHub Actions pnpm setup with the current Rsbuild workflow pattern from web-infra-dev/rsbuild#7856.

  • Replace corepack/manual pnpm install steps with pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 and run_install: true.
  • Explicitly disable actions/setup-node package manager caching with package-manager-cache: false.
  • Keep browser installation commands as separate post-install steps where needed.

@chenjiahan chenjiahan marked this pull request as ready for review June 9, 2026 03:57
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a87d7fc4-22ee-42b5-88f2-1a8770fc0f81

📥 Commits

Reviewing files that changed from the base of the PR and between b8c316f and 6d47ac8.

📒 Files selected for processing (2)
  • .github/workflows/nodejs.yml
  • .github/workflows/release.yml

📝 Walkthrough

Walkthrough

This PR updates three GitHub Actions workflow jobs to standardize pnpm setup across the project's CI/CD pipelines. The changes replace manual corepack-based pnpm installation with the dedicated pnpm/action-setup action in the lint and test jobs of .github/workflows/nodejs.yml and the publish job of .github/workflows/release.yml. Node.js setup is now configured with package-manager-cache: false, and pnpm installation is delegated to the pnpm/action-setup action with run_install: true to handle both pnpm installation and dependency resolution.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'chore: optimize CI pnpm setup' directly and clearly describes the main change—optimizing the GitHub Actions pnpm configuration across workflow files.
Description check ✅ Passed The description is directly related to the changeset, providing context about aligning with Rsbuild patterns and explaining the pnpm/action-setup replacement with specific rationale.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/optimize-ci-pnpm-action-20260609

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

@chenjiahan chenjiahan merged commit dec80f4 into master Jun 10, 2026
6 checks passed
@chenjiahan chenjiahan deleted the codex/optimize-ci-pnpm-action-20260609 branch June 10, 2026 02: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.

1 participant