-
Notifications
You must be signed in to change notification settings - Fork 2
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
Run npm ci
when a lockfile is available
#37
Conversation
then | ||
echo "::set-output name=install-command::npm ci" | ||
else | ||
echo "::set-output name=install-command::npm install" |
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.
What about yarn.lock?
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.
yarn
support not yet implemented - #6 - it needs a little bit more thought.
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.
npm install
and npm ci
both read yarn.lock
automatically in npm 7+.
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.
You think we should run npm ci
when yarn.lock
is present (until #6 is done)?
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.
Yes, that would make the most sense.
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.
npm supports this as of v7+ and it is a better option than `npm install` until #6 is implemented
Closes #8.
Doing this as a separate step, because I'd like to keep the default shell (Powershell on Windows) for the actual install step (I suspect we'll have to make it configurable, but that's out of scope here - will wait for someone to ask for that).
Test runs: