-
Notifications
You must be signed in to change notification settings - Fork 6
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
use the latest pnpm/action-setup and don't define pnpm version if packageManager is defined #127
Conversation
6db6f57
to
7ed32cc
Compare
<% if (pnpm) { %> | ||
- uses: pnpm/action-setup@v3 | ||
node-version: 18<% if (pnpm) { %> | ||
- uses: pnpm/action-setup@v4<% if (!hasPackageManager) { %> | ||
with: |
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.
why specify the version at all? the duplication in workflows is maddening.
This is what package.json#packageManager is for
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.
or wait, I can't read ejs.
this does exactly what I expect.
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.
look a bit more carefully at the change, it only adds the version if you haven't set packageManager. And version is a required parameter if you haven't got packageManager so the action will break without it
I agree that packageManager should be used by most people at this stage but we can't impose it as part of our workflow. And people who do define it will benefit from it 💪
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.
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.
omg Github 😭 this is why eventual consistency doesn't always work. it didn't even update the thread after I posted my response
No description provided.