Skip to content
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

Don't set packageManager default via action.yml #193

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

1000hz
Copy link
Contributor

@1000hz 1000hz commented Oct 10, 2023

In #190 I set default: npm in action.yml, not realizing this sets the actual input value when it's not provided explicitly (as opposed to just serving as documentation) 🤦🏻‍♂️. This prevented lockfile inference from ever happening, since the packageManager value would never be empty.

This PR removes the default value, allowing the lockfile inference to happen before ultimately falling back to "npm".

@1000hz 1000hz requested a review from a team as a code owner October 10, 2023 22:51
@1000hz 1000hz force-pushed the cina/fix-packagemanager-default branch from 4ebae9d to 1814662 Compare October 10, 2023 22:57
We need to distinguish between when the value is and isn't set in order to perform inference based on lockfile and only fallback to the default of npm if inference fails.
@1000hz 1000hz force-pushed the cina/fix-packagemanager-default branch from 1814662 to bd06b29 Compare October 10, 2023 23:00
required: false
default: npm
Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@1000hz 1000hz merged commit f40a9f5 into main Oct 11, 2023
3 checks passed
@1000hz 1000hz deleted the cina/fix-packagemanager-default branch October 11, 2023 08:54
@github-actions github-actions bot mentioned this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants