-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
GitHub Actions: add install action #5196
Conversation
to reduce duplication
|
This is really interesting! I didn't know you could break up actions like this. |
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.
I love it and had no idea you could do this
I already noted that this was inspired by / based on Minor detail that's on my mind, looking that this again: |
add warnings
Whoops, I was mixing up the types for actions & workflows -- I knew only the latter accepts (and requires) Anyhoo, I got to learn a bit about JSON Schema & whatnot, and I think I've got it (this PR) all squared away now, thanks to @natemoo-re, you might want to take another quick peek? Everything is the same except for |
inputs: | ||
node-version: | ||
description: 'Node version' | ||
required: false |
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.
Minor detail, but just in case: required
defaults to false
, so these 3 lines (7, 11, 15) could be removed. I put them in with the thought that it would be helpful to state this explicitly, but alternately there could be a comment between lines 4 & 5 saying something like "all of these are optional". And/or a comment could contain a link to the docs.
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.
I like having the default value here, even if it is implied.
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.
Looks great—nice updates! Thanks for being so thorough here!
inputs: | ||
node-version: | ||
description: 'Node version' | ||
required: false |
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.
I like having the default value here, even if it is implied.
Changes
pnpm install
)node-version
:string
, defaults to16
, node semvar versionjs-runtime
:string
, defaults tonode
, installs deno ifdeno
is providedinstall-dependencies
: booleanstring
, defaults totrue
, skipspnpm install
iffalse
(if a boolean is passed, it will be coerced into a string before reaching.github/actions/install/action.yml
)Testing
Fingers crossed!
Docs
n/a