Skip to content

fix(action): don't cache the caller's dependencies - #24

Merged
vilenarios merged 1 commit into
mainfrom
fix/action-no-package-manager-cache
Aug 29, 2026
Merged

fix(action): don't cache the caller's dependencies#24
vilenarios merged 1 commit into
mainfrom
fix/action-no-package-manager-cache

Conversation

@vilenarios

Copy link
Copy Markdown
Contributor

Caught by a staging deploy of ar-io-console pinned at #23's SHA, before moving the v1 tag.

##[error]Dependencies lock file is not found in /home/runner/work/ar-io-console/ar-io-console.
Supported file patterns: yarn.lock

Cause

actions/setup-node@v5 changed behaviour:

introduces automatic caching when a valid packageManager field is present in your package.json … To disable this automatic caching, set package-manager-cache: false

action.yml passes no cache input, so this is entirely implicit. ar-io-console declares packageManager: yarn@1.22.22 but installs with npm, so setup-node looked for a yarn.lock that does not exist and failed the step — taking the deploy with it.

This would have hit any consumer whose packageManager field and lockfile disagree, on a step that exists only to provide a Node runtime for npm install -g @ar.io/deploy.

Fix

package-manager-cache: false. The action should never touch the caller's dependency cache.

Note

This is why #23 proposed verifying on staging before moving v1. The v1 tag still points at v1.0.0, so no consumer was ever exposed — but had we retagged first, every one of them would have been.

setup-node@v5 auto-caches whenever package.json declares a
packageManager, and hard-fails when the matching lockfile is missing. A
consumer whose declared manager and lockfile disagree would have their
deploy break on a step that only exists to provide a Node runtime.
@vilenarios
vilenarios merged commit 39c26a3 into main Aug 29, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant