Upgrade nodejs version to 20.5.1
The current nodejs version 16 end-of-life is Sept 11, 2023. We have to upgrade to newest version.
- nvm:
- pnpm:
- Github action CI flow:
update Node version from 16 to 20.
- 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
Is there a plan for who does what, and when it must be completed?
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.
Entities will get to this next sprint, 19.1
@pwei1018 @seeker25 Should we use the latest current release (20.7.0) instead?
@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.
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 👍
Steps to upgrade your workstation (if you use nvm)
- open a terminal window
- go to your project folder
- enter
nvm install 20.5.1 - enter
nvm use 20 - enter
nvm alias default 20 - close this terminal window
- open a new terminal window
- enter
node --version
@hfekete can you check if we are using the correct version in our projects?
@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 you can close this. We might need to create another ticket to upgrade to Node.js 24 soon.