JamesIves/fetch-api-data-action

Update Node from 10 to 12

JamesIves opened this issue · 8 comments

Describe the bug

Right now the .nvmrc file points to Node 10. This is two versions out of date and should be updated to use the latest Node version.

Additional Comments

  • Change the node version, install with nvm use.
  • Run the usual commands, yarn install, yarn format, yarn lint, yarn test. Ensure there are no issues.
  • Make applicable readme and fixes to ensure it's clear to the user that this action runs on Node 12+.

@JamesIves . Would like to work on this issue

Go for it! I've assigned it to you.

After the suggested changes.,

  • No issues with yarn test
  • Fixed issues with yarn lint
  • yarn format have few errors. @JamesIves . Need you suggestion how to resolve this.

yarn format

Are you using Mac/Linux or Windows?

Windows 10 with Node version 12.8.4

This is probably due to the use of single quotes in the format command. Try wrapping the pattern in the format command with double quotes instead?

I'm not a Windows user personally so I'm unsure.

This is probably due to the use of single quotes in the format command. Try wrapping the pattern in the format command with double quotes instead?

I'm not a Windows user personally so I'm unsure.

Thanks @JamesIves . The suggestion you gave worked out. Raised the PR, would like to review

Approved/merged. Thanks for doing that!