-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(publish): don't use pnpm cache when not installing #7939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prevents actions/setup-node from attempting to cache pnpm dependencies in the publish workflow since no installation step runs, avoiding cache lookup failures.
- Removed the
cache: pnpmoption from the setup step - Added an explanatory comment to clarify why caching is disabled
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7939 +/- ##
==========================================
- Coverage 75.42% 75.37% -0.05%
==========================================
Files 96 96
Lines 8354 8354
Branches 219 220 +1
==========================================
- Hits 6301 6297 -4
- Misses 2051 2055 +4
Partials 2 2 ☔ View full report in Codecov by Sentry. |
|
Lighthouse Results
|
|
Fast-tracking as a hot fix! cc @nodejs/web-infra |
Description
Per discussion in #7824 (comment), the publish matrix sometimes generates a failure in the post-step for actions/setup-node due to a cache issue. I suspect this is due to us enabling pnpm caching for actions/setup-node in this job when we never invoke
pnpm install, resulting in the post-step being unable to find dependencies to cache if a cache hit didn't occur during actions/setup-node earlier in the job.Validation
Dispatch this workflow on this branch. May need to manually delete whatever cache entry is hit and re-dispatch.Cannot publish arbitrary commits via the job, will need to merge and then test in main.
Related Issues
N/A
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.