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

FIX Allow different node versions for admin vs module #5

Conversation

GuySartorelli
Copy link
Member

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

error [email protected]: The engine "node" is incompatible with this module. Expected version "^6.x". Got "10.24.1"

Parent issue

action.yml Outdated
nvm install
nvm use
rm -rf client/dist
if [[ $(npm -v) != $NPM_VERSION ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

fix this bit

Copy link
Member Author

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@GuySartorelli GuySartorelli force-pushed the pulls/1.0/allow-multiple-node-versions branch from 0714c90 to e896563 Compare July 19, 2022 02:39
action.yml Outdated
nvm install
nvm use
rm -rf client/dist
if [[ $(npm -v) != $NPM_VERSION ]]; then
Copy link
Member

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

@GuySartorelli GuySartorelli force-pushed the pulls/1.0/allow-multiple-node-versions branch from e896563 to bd1f72e Compare July 19, 2022 03:04
@emteknetnz emteknetnz merged commit f71d52d into silverstripe:1.0 Jul 19, 2022
@emteknetnz emteknetnz deleted the pulls/1.0/allow-multiple-node-versions branch July 19, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants