ci: use voidzero-dev/setup-vp instead of setup-node + pnpm/action-setup#2145
ci: use voidzero-dev/setup-vp instead of setup-node + pnpm/action-setup#2145fengmk2 wants to merge 8 commits intonpmx-dev:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR updates five GitHub Actions workflows (.github/workflows/autofix.yml, ci.yml, lunaria.yml, release-pr.yml, release-tag.yml) to replace Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9c3bd404-b7d1-4d49-8353-e0d2b01d1d7c
📒 Files selected for processing (6)
.github/workflows/autofix.yml.github/workflows/chromatic.yml.github/workflows/ci.yml.github/workflows/lunaria.yml.github/workflows/release-pr.yml.github/workflows/release-tag.yml
This comment was marked as resolved.
This comment was marked as resolved.
3285237 to
da26a9c
Compare
da26a9c to
9102ca2
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
.github/workflows/ci.yml (1)
37-37:⚠️ Potential issue | 🔴 Critical
vp run lintandvp run knipstill appear to target missing scripts.Line 37 and Line 164 will fail if
package.jsondoes not definelint/knipscripts (onlylint:fix/knip:fix). This was already raised earlier and still appears unresolved.#!/bin/bash set -euo pipefail echo "=== Workflow commands in CI ===" rg -n 'run:\s*vp run (lint|knip)' .github/workflows/ci.yml echo "=== Matching scripts in root package.json ===" jq -r '.scripts | keys[]' package.json | rg '^(lint|lint:fix|knip|knip:fix)$' || true echo "=== Explicit values for candidate scripts ===" jq -r '.scripts["lint"], .scripts["lint:fix"], .scripts["knip"], .scripts["knip:fix"]' package.jsonAlso applies to: 164-164
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ca1ba98c-d702-4124-bb0b-d31995e64c23
📒 Files selected for processing (5)
.github/workflows/autofix.yml.github/workflows/ci.yml.github/workflows/lunaria.yml.github/workflows/release-pr.yml.github/workflows/release-tag.yml
✅ Files skipped from review due to trivial changes (1)
- .github/workflows/lunaria.yml
🚧 Files skipped from review as they are similar to previous changes (2)
- .github/workflows/autofix.yml
- .github/workflows/release-tag.yml
9102ca2 to
586deee
Compare
Replace the two-step setup pattern (actions/setup-node + pnpm/action-setup + pnpm install) with the unified voidzero-dev/setup-vp action across all CI workflows. This simplifies setup to a single step with node-version, cache, and automatic dependency installation via vp. - Replace all pnpm vp commands with vp directly - Build storybook via vp before passing to chromatic action
Add run-install: false and manual vp install --filter . --ignore-scripts for lint, i18n, and tag jobs to match original behavior and avoid running heavy postinstall tasks (generate:lexicons, generate:sprite, nuxt prepare) in jobs that don't need them.
Cache is unnecessary when only installing root deps with --ignore-scripts.
4a7dbed to
f87c32d
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/release-tag.yml (1)
97-101: Keep the publish job on an explicit connector-only install.
setup-vpdefaultsrun-installtotrue, so this step now does a root-level install before the connector build. That drops the previous connector-only scoping and pulls the workspace rootpostinstallinto the npm publish path, which adds unrelated work and failure modes to a release job. I’d keep auto-install off here and restore the explicit filtered install step instead. (raw.githubusercontent.com)💡 Minimal change
- uses: voidzero-dev/setup-vp@73e69397a8b289de4b1d017ced18e18004183bb1 # v1 with: node-version: lts/* cache: true registry-url: https://registry.npmjs.org + run-install: falseThen restore the previous connector-only install step before the build.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c006621f-ef6c-421c-8392-386888fe02b3
📒 Files selected for processing (5)
.github/workflows/autofix.yml.github/workflows/ci.yml.github/workflows/lunaria.yml.github/workflows/release-pr.yml.github/workflows/release-tag.yml
🚧 Files skipped from review as they are similar to previous changes (2)
- .github/workflows/ci.yml
- .github/workflows/autofix.yml
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.github/workflows/release-tag.yml (1)
98-103:⚠️ Potential issue | 🟡 Minor
registry-urlonsetup-vpmay be a no-op.Line 101 passes
registry-url, but this input may not be supported byvoidzero-dev/setup-vp. If unsupported, it is silently ignored and can mislead publish configuration assumptions.Proposed cleanup
- uses: voidzero-dev/setup-vp@73e69397a8b289de4b1d017ced18e18004183bb1 # v1 with: node-version: lts/* - registry-url: https://registry.npmjs.org run-install: false#!/bin/bash set -euo pipefail SHA="73e69397a8b289de4b1d017ced18e18004183bb1" URL="https://raw.githubusercontent.com/voidzero-dev/setup-vp/${SHA}/action.yml" echo "Fetching action metadata from pinned SHA: ${SHA}" curl -fsSL "$URL" | sed -n '/^inputs:/,/^outputs:/p'Expected result: the
inputssection should explicitly list supported keys; verify whetherregistry-urlexists.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ecaf6580-8b88-439b-88e9-87fe369e75f6
📒 Files selected for processing (5)
.github/workflows/autofix.yml.github/workflows/ci.yml.github/workflows/lunaria.yml.github/workflows/release-pr.yml.github/workflows/release-tag.yml
🚧 Files skipped from review as they are similar to previous changes (3)
- .github/workflows/autofix.yml
- .github/workflows/lunaria.yml
- .github/workflows/ci.yml
🔗 Linked issue
#2129
🧭 Context
Replace the two-step setup pattern (actions/setup-node + pnpm/action-setup + pnpm install) with the unified voidzero-dev/setup-vp action across all CI workflows. This simplifies setup to a single step with node-version, cache, and automatic dependency installation via vp.
pnpm vpcommands withvpdirectlyvpbefore passing to chromatic action📚 Description
The time for installing node and dependencies after switching will not be significantly different from before.