Skip to content

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Oct 14, 2025

In actions/setup-node version 6 package-manager-cache is only supported for npm.

See: actions/setup-node#1374

…ion in checkout-and-setup-node

In `actions/setup-node` version 6 `package-manager-cache` is only supported for npm. See: actions/setup-node#1374
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Oct 14, 2025
node-version: ${{ inputs.node-version }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}
package-manager-cache: ${{ inputs.disable-package-manager-cache != 'true' }}
cache: ${{ inputs.disable-package-manager-cache != 'true' && steps.packageManager.outputs.CACHE_MANAGER_VALUE || '' }}
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be a boolean or a string of the package manager? Where do we set CACHE_MANAGER_VALUE to e.g. yarn?

Copy link
Contributor Author

@alan-agius4 alan-agius4 Oct 14, 2025

Choose a reason for hiding this comment

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

It's supposed to be a string.

https://github.com/actions/setup-node/blob/2028fbc5c25fe9cf00d9f06a71cc4710d4507903/action.yml#L24-L25

CACHE_MANAGER_VALUE is set above, as part of this change.

Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks. Isn't CACHE_MANAGER_VALUE only set for pnpm? is that expected because we only use pnpm at this point? If so, LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

node-version: ${{ inputs.node-version }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}
package-manager-cache: ${{ inputs.disable-package-manager-cache != 'true' }}
cache: ${{ inputs.disable-package-manager-cache != 'true' && steps.packageManager.outputs.CACHE_MANAGER_VALUE || '' }}
Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks. Isn't CACHE_MANAGER_VALUE only set for pnpm? is that expected because we only use pnpm at this point? If so, LGTM

@alan-agius4
Copy link
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the pr-takeover-3150 branch October 14, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants