Fix publish workflow caching for per-package pnpm lockfiles - #46
Merged
Conversation
Co-authored-by: chee <178266+chee@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job publish
Fix publish workflow caching for per-package pnpm lockfiles
Aug 6, 2026
chee
marked this pull request as ready for review
August 6, 2026 22:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
publishGitHub Actions job was failing because pnpm caching was still configured as if the repo had a rootpnpm-lock.yaml. This repo installs and builds packages independently, so the workflow now keys caching off the per-package lockfiles instead.Root cause
actions/setup-nodewas usingcache: pnpmwithout a dependency path override, which made it require/pnpm-lock.yamlat the repository root.Workflow changes
pnpm/action-setupto the repo’s pnpm version (11.15.1) for consistency with other workflows.actions/setup-nodeto use all package lockfiles for pnpm cache invalidation:actions/cacheentry for package-localnode_modulesdirectories so publish can benefit from per-package install reuse without reintroducing a root lockfile.Behavioral impact
tasks/src/in-the-cloudpackage.