-
Notifications
You must be signed in to change notification settings - Fork 4
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
FIX Allow different node versions for admin vs module #5
FIX Allow different node versions for admin vs module #5
Conversation
action.yml
Outdated
nvm install | ||
nvm use | ||
rm -rf client/dist | ||
if [[ $(npm -v) != $NPM_VERSION ]]; then |
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.
fix this bit
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.
Have initialised the variable above.
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.
set NPM_VERSION=
above the if [[ -d vendor/silverstripe/admin ]]; then
block in-case there is no admin dir
It ?might? work in bash as it is now, though it's weird and confusing
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.
And change the var name to ADMIN_NPM_VERSION
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.
Done
0714c90
to
e896563
Compare
action.yml
Outdated
nvm install | ||
nvm use | ||
rm -rf client/dist | ||
if [[ $(npm -v) != $NPM_VERSION ]]; then |
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.
set NPM_VERSION=
above the if [[ -d vendor/silverstripe/admin ]]; then
block in-case there is no admin dir
It ?might? work in bash as it is now, though it's weird and confusing
e896563
to
bd1f72e
Compare
Allow the module to have a different version of node than admin
Allows a fix for https://github.com/silverstripe/silverstripe-contentreview/runs/7401209441?check_suite_focus=true
Parent issue