entity icon indicating copy to clipboard operation
entity copied to clipboard

Upgrade nodejs version to 20.5.1

Open pwei1018 opened this issue 2 years ago • 8 comments

The current nodejs version 16 end-of-life is Sept 11, 2023. We have to upgrade to newest version.

  • nvm:

Private Zenhub Image

  • pnpm:

image

  • Github action CI flow:

update Node version from 16 to 20.

image

  • Github action CD flow:

update to use the following workflow version file.

Public Repo: bcgov/bcregistry-sre/.github/workflows/ui-cd-node20.yaml@main

Private Repo: bcgov/bcregistry-sre/.github/workflows/ui-cd-private-node20.yaml@main

  • devops/cloudbuild_pr.yaml

image

pwei1018 avatar Sep 01 '23 17:09 pwei1018

Is there a plan for who does what, and when it must be completed?

severinbeauvais avatar Sep 05 '23 15:09 severinbeauvais

Is there a plan for who does what, and when it must be completed?

It should be done by Project teams. I wish ASAP and it's up to your team planning.

pwei1018 avatar Sep 05 '23 19:09 pwei1018

Entities will get to this next sprint, 19.1

jdyck-fw avatar Sep 06 '23 15:09 jdyck-fw

@pwei1018 @seeker25 Should we use the latest current release (20.7.0) instead?

severinbeauvais avatar Sep 20 '23 21:09 severinbeauvais

@pwei1018 @seeker25 Should we use the latest current release (20.7.0) instead?

Some projects are already using 20.5.1. I think we should use the same version unless you think there are new features or fixes we have to update.

pwei1018 avatar Sep 20 '23 21:09 pwei1018

Some projects are already using 20.5.1. I think we should use the same version unless you think there are new features or fixes we have to update.

None that I know of. We will update the Entity UIs to 20.5.1 👍

severinbeauvais avatar Sep 20 '23 21:09 severinbeauvais

Steps to upgrade your workstation (if you use nvm)

  1. open a terminal window
  2. go to your project folder
  3. enter nvm install 20.5.1
  4. enter nvm use 20
  5. enter nvm alias default 20
  6. close this terminal window
  7. open a new terminal window
  8. enter node --version

severinbeauvais avatar Sep 25 '23 18:09 severinbeauvais

@hfekete can you check if we are using the correct version in our projects?

mstanton1 avatar Sep 06 '24 15:09 mstanton1

@pwei1018 is this still needed? In our projects the only service using a version lower is a few pages in registries search which are being deprecated in the near future.

mstanton1 avatar Mar 21 '25 15:03 mstanton1

@mstanton1 you can close this. We might need to create another ticket to upgrade to Node.js 24 soon.

Image

pwei1018 avatar Mar 21 '25 21:03 pwei1018